Archived topic
How can I fix the secondary menu when scrolling down.
9 replies · Started by Stephen on January 19, 2021
Hello, I am using GP Pro for most of my sites.
Now I am facing a issue, Do GP has features to fix the secondary menu when I scroll down the page? like fixing the secondary menu and make it fixed under the main menu? Here is the reference link https://www.awesomescreenshot.com/video/2427150?key=aaede1bc9f06ed1109bb9d403c3407da
Best regards,
Chris
Hi there,
you can use some CSS to make the secondary nav sticky:
#secondary-navigation {
position: -webkit-sticky;
position: sticky;
top: 92px; /* Height of header */
}
/* Adjust position for mobile header */
@media(max-width: 768px) {
#secondary-navigation {
top: 60px;
}
}
Thank you so much David!
It worked well for me, I will keep using GP for my projects.
Glad to hear that!
Hello David, I am the fan of GP.
Now I have an issue that my secondary menu's hover over color could not changed..
Here is the referential video https://www.awesomescreenshot.com/video/2929989?key=f40f9e6b177ac4461a75b4a5134ccbb8
Is there any way to solve this issue?
Thanks in advance,
Chris
Hi there,
Any chance you could link us to the site in question so we could check for any reason why it occurs?
It helps to clear cache as well.
Hi Elvin, here is the site link https://54.68.147.74/~lfs/politiques-des-langues/
Hi Stephen,
The background current and text current colors are overriding the hover colors, because all of the secondary navigation items are linked to the current page with different anchors.
You could try to clear the current colors in customizer see if that works.
Hi Ying, sorry for the late reply, I checked the site, it works well!
Appreciated your help, always be your fan.
Btw for the menu background color issue which you helped us months ago, the background color seems still shows up, I will switch back to that topic and send you detail info, hope can get your continued advice.
Chris
Thanks Chris for getting back to me.
Glad it works now!
Let's deal with the background color in the other topic :)