Site logo

Archived topic

How can I fix the secondary menu when scrolling down.

9 replies · Started by Stephen on January 19, 2021

Viewing posts 1–10 of 10

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!

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 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 :)

This archived topic is closed to new replies.