Archived topic
Sticky nav/header
10 replies · Started by racheljohn on November 16, 2021
I am using a plugin to do a top bar for sales ads on one of my sites and my generate press sticky header/nav keeps sliding under the top bar as soon as you start scrolling is there away to fix this within generate press so it won't slide under it?
Hi there,
you can use this CSS to offset the sticky navs position:
.sticky-enabled .main-navigation.is_stuck {
top: 38px !important;
}
okay halfway there lol so it makes it more visible(about halfway) but its still partially hidden and if I increase the top: px its not making it more visible?
Hi there,
Have you checked the front end when the CSS is added to your site?
It should show the sticky navigation entirely, not halfway, unless there's a admin bar on top of the screen.
Let me know :)
yes I double checked even without the admin bar its still only halfway visible for some reason.
Can you remove the CSS i provided. And then add it back in at the top of the Additional CSS?
you guys are awesome! That did the trick. Thanks
okay the only thing is if the the top-bar ad is closed then there is a gap, is there away to fix that so it only adds the space when the top-bar is open?
Did you remove the site info?
Can you link us to the site again?
Live Link has been readded
is there away to fix that so it only adds the space when the top-bar is open?
Checked the site, I don't think it's possible without custom development Unfortuanly.