Okay
  Public Ticket #2391295
Mobile site width aligned with header
Closed

Comments

  •  4
    Marcin started the conversation

    Hi,

    My Client would like to have site width on all mobile devices (iphones) aligned with the header width (left side of the logo and right side of the hamburger)

    Can site container follow the header container in mobile?

    Is it possible?

    Many thanks in advance.

  •  4
    Marcin replied

    How can I decrease Mobile Breakpoint less than 1000px?

    I would like to have a normal menu on landscape phone.

    Is there a way to do that? Many thanks

  •  9,059
    Tahir replied

    Hey Again,

    -You can use the Css below to set the Header Container to the Page Container .

    Add this into the Custom CSS box located in your Salient Options panel (All custom css provided is tested in the Live Browser so it will work as intended . If you cant see any changes make sure there is no red cross in the Custom CSS Box as that syntax error would cause all css below it to not show up on the Frontend):

    @media only screen and (max-width: 690px) {
        body[data-slide-out-widget-area-style="slide-out-from-right-hover"][data-slide-out-widget-area="true"][data-user-set-ocm="off"] #header-outer header > .container {
            max-width: 320px !important;
            padding: 0 !important;
        }
    }
    @media only screen and (max-width: 999px) and (min-width: 690px) {
        body[data-slide-out-widget-area-style="slide-out-from-right-hover"][data-slide-out-widget-area="true"][data-user-set-ocm="off"] #header-outer header > .container {
            max-width: 600px !important;
            padding: 0 !important;
        }
    }

    - Unfortunately there is no such option to change the Breakpoint via css alone to lower than 1000px. 

    Thanks


    ThemeNectar Support Team 

  •  4
    Marcin replied

    Thank you Tahir!

    All the best

  •  4
    Marcin replied

    It seems to make some issue on landscape in mobile. The header is not full width and humburger doesnt match with sliding menu humburger.

    Movie from iphone 7

    https://we.tl/t-RLKu9LJa6B

  •  9,059
    Tahir replied

    Unfortunately there is no such option to match the menu hamburger on the header with the Sliding Menu . You will likely have to switch to a different style of Off Canvas Menu .

    Thanks 


    ThemeNectar Support Team 

  •  4
    Marcin replied

    OK, thank you very much