Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1114380
    tucker_m
    Participant

    Hey there,

    I’m looking to get my collapsed menu button that shows on mobile to align centered. As you can see in the attached image, the menu is aligned to the right rather than in the center. The menu items in a regular web browser view are aligned left, which is perfectly fine. I’m simply looking for the mobile menu button to be centered.

    Also, when I view the site on a iPad view, the button pops up to the right of the logo image (see attached image). How would I go about fixing this as well?

    Thanks for the help!

    #1114388
    tucker_m
    Participant
    This reply has been marked as private.
    #1114619
    Jade
    Moderator

    Hi there,

    Please add this code in the customizer:

    @media (max-width: 767px ) {
        .masthead-inline .x-btn-navbar {
            float: none;
            clear: both;
            margin-bottom: 15px;
            display: inline-block;
        }
    
        .x-navbar-fixed-left .x-brand {
            clear: both;
            width: 100%;
        }
    }

    Hope this helps.

    #1115727
    tucker_m
    Participant

    The mobile collapsed menu is now aligned to the left instead of center. What do I need to change in the code to center it rather than aligned left (see attached photo)?

    Also, the iPad view never changed. The menu is still located up at the right hand corner of the screen in vertical view (see attached photo).

    Thanks!

    #1115945
    Joao
    Moderator

    Hi There,

    Please update this code :

    @media (max-width: 767px ) {
    .masthead-inline .x-btn-navbar {
    float: none;
    clear: both;
    margin-bottom: 15px;
    display: inline-block;
    }

    to

    @media (max-width: 767px ) {
        .masthead-inline .x-btn-navbar {
            float: none;
            clear: both;
            margin-bottom: 15px;
            display: inline-block;
           margin-left: 45%;
        } }

    Hope it helps

    Joao

    #1117914
    tucker_m
    Participant
    This reply has been marked as private.
    #1118358
    Lely
    Moderator

    Hi There,

    Please update this:

    @media (max-width: 767px ) {
        .masthead-inline .x-btn-navbar {
            float: none;
            clear: both;
            margin-bottom: 15px;
            display: inline-block;
           margin-left: 45%;
        } }

    To this:

    @media (max-width: 979px ) {
        .masthead-inline .x-btn-navbar {
            float: none;
            clear: both;
            margin-bottom: 15px;
            display: inline-block;
           margin-left: 45%;
        } }

    Hope this helps.

  • <script> jQuery(function($){ $("#no-reply-1114380 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>