Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1336992
    Elle
    Participant

    How can I get the logo to be centered in mobile view?

    I’m doing the Icon stack and the Navbar is positioned Fixed Left. Would like the logo and navbar button to be centered, but keep the desktop view navbar positioned fixed left?

    Please let me know if that is possible.

    #1336993
    Elle
    Participant
    This reply has been marked as private.
    #1337009
    Joao
    Moderator

    Hi There,

    Please add the following code to Appereance > Customizer > Custom > CSS

    @media (max-width: 979px)  {
    .x-navbar-fixed-left .x-brand, .x-navbar-fixed-right .x-brand {
        margin-top: -30px;
    } 
    
    .x-btn-navbar, .x-btn-navbar.collapsed {
    
        margin-left: 50%;
        margin-bottom: 20px;
    }
    
    }

    Hope that helps

    Joao

    #1337025
    Elle
    Participant

    It didn’t work on getting it centered.

    Is there anyway to get the navbar and the logo centered in mobile view? Like the Logo (centered) then the navbar menu underneath the logo?

    #1337043
    Joao
    Moderator

    Hi There,

    Please try:

    @media (max-width: 979px)  {
    .x-navbar-fixed-left .x-brand, .x-navbar-fixed-right .x-brand {
        margin-top: -30px;
     float: none;
    } 
    
    .x-btn-navbar, .x-btn-navbar.collapsed {
    
        margin-left: 50%;
        margin-bottom: 20px;
    }
    
    }

    Hope that helps

    Joao

    #1337062
    Elle
    Participant

    Awesome! Thanks Joao!

    #1337067
    Joao
    Moderator

    Glad to hear it 🙂

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