Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1144805
    Frocreate
    Participant

    Hi all, I have my navbar set to inline but, because my logo is a bit wide, Id like to have the logo and hamburger menu stacked and centered when on mobile. Also, what CSS do I need to target in order to change margin and padding on the menu and/or icon on mobile view?

    Thanks!

    #1145031
    Joao
    Moderator

    Hi There,

    Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.

    Thanks

    Joao

    #1145309
    Frocreate
    Participant
    This reply has been marked as private.
    #1145843
    Rue Nel
    Moderator

    Hello There,

    Thanks for writing in! To resolve this issue and switch the inline navbar to stacked position, please add the following css code in the customizer, Appearance > Customize > Custom > CSS

    @media (max-width: 979px){
      .masthead-inline .x-btn-navbar {
        display: inline-block;
        float: none;
        margin-bottom: 20px;
      }
    
      .masthead-inline .x-navbar {
        text-align: center;
      }
    }
    

    Hope this helps. Please let us know how it goes.

    #1146614
    Frocreate
    Participant

    That did the trick – thank you!

    #1146744
    Joao
    Moderator

    Glad to hear it 🙂

    Let us know if we can help with anything else.

    Joao

    #1148376
    Frocreate
    Participant

    After making this change and removing the topbar on mobile, I noticed a few weird things when I tested on iPhone:

    • The page name appears in the header above the logo
    • Instead of a hamburger icon, it now reads “navigation”
    • Four blockgrid items are no longer centered
    • “Contact Us” link icons have disappeared

    Thanks in advance for your help!

    #1148753
    Nabeel A
    Moderator

    Hi there,

    I checked your site and everything seems to be displaying fine on my end, Can you please clear your mobile browser’s cache and check the site again?

    Let us know how this goes!

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