-
ch18639
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
-
Fernando
Hi there,
Increasing the Menu Item height in Appearance > Customize > Layout > Sticky Navigation should increase the height of the sticky nav correspondingly.
-
ch18639
Hi,
When I change the Sticky Navigation height, it changes it on desktop as well? My desktop and mobile menu heights are different.
Charles
-
Fernando
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. -
ch18639
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 🙂
-
ch18639
Hi there,
I’ve cleared the cache and tried testing with the above CSS but still no luck.
Charles
-
Fernando
Hi Charles,
For reference, can you share the link to the site in question?
-
ch18639
-
Fernando
Can you provide admin login credentials as well through the Private Information field? I’ll check what’s causing it not to work.
-
ch18639
Hi Fernando,
Please see attached.
Charles
-
Fernando
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. -
ch18639
Hi Fernando,
Thanks for pointing that out. I’ve removed that.
Still no luck with the menu on mobile.
Charles
-
Fernando
I see. You’re using a mobile header. Try this:
nav#mobile-header.is_stuck { min-height: 100px; }
-
ch18639
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!
- You must be logged in to reply to this topic.