Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Setting for menu item height for sticky navigation mobile

  • Hi there,

    Is there a setting to control the menu item height for sticky navigation on mobile? I can’t seem to find it if there is.

    Thanks in advance.

    Charles

  • Hi there,

    Increasing the Menu Item height in Appearance > Customize > Layout > Sticky Navigation should increase the height of the sticky nav correspondingly.

  • Hi,

    When I change the Sticky Navigation height, it changes it on desktop as well? My desktop and mobile menu heights are different.

    Charles

  • I see. You can try adding this through Appearance > Customize > Additional CSS:

    nav#sticky-navigation.is_stuck {
        min-height: 120px;
    }

    Replace 120 with your preferred value.

  • Hi,

    I’ve set the above value to 55px which is the menu item height for mobile but it doesn’t seem to have changed anything.

    Charles

  • 1. Have you cleared cache?

    2. Is there any other CSS in the Additional CSS field? If so, can you try moving Fernando’s CSS to the top of the field to test?

    And if the CSS is only for mobile, I would recommend adding a media query like this to wrap Fernando’s CSS:

    @media(max-width:768px) {
     Fernando's CSS here
    }

    Let me know 🙂

  • Hi there,

    I’ve cleared the cache and tried testing with the above CSS but still no luck.

    Charles

  • Hi Charles,

    For reference, can you share the link to the site in question?

  • Hi Fernando,

    No problem, the link is http://www.thesurebettor.com/blog/

    Charles

  • Can you provide admin login credentials as well through the Private Information field? I’ll check what’s causing it not to work.

  • Hi Fernando,

    Please see attached.

    Charles

  • You have an extra } at the very bottom of Additional CSS. It’s causing a syntax error. Can you remove that first? Let’s see how it goes afterward.

  • Hi Fernando,

    Thanks for pointing that out. I’ve removed that.

    Still no luck with the menu on mobile.

    Charles

  • I see. You’re using a mobile header. Try this:

     nav#mobile-header.is_stuck {
        min-height: 100px;
    }
  • Hi,

    I’ve added the above CSS and switched the value to 55px but still no luck.

    Charles

  • Hi Charles,

    Do you want the sticky navigation looks exactly the same as the navigation?

    If so, I would recommend disabling the GP sticky navigation option and using this CSS to make the navigation sticky:

    nav#site-navigation,nav#mobile-header {
        position: sticky;
        top: 0;
    }

    Let me know if this helps!

Viewing 16 posts - 1 through 16 (of 18 total)
  • You must be logged in to reply to this topic.