Archived topic
Sticky only secondary menu
3 replies · Started by Ender on February 23, 2019
There has recently been a contribution related to the Sticky Menu.
https://generatepress.com/forums/topic/sticky-secondary-and-primary-menu
There it was mentioned that the second menu sticky can also be made via CSS
https://generatepress.com/forums/topic/sticky-secondary-and-primary-menu/#post-817259
with this Code
.navigation-stick + .secondary-navigation {
position: -webkit-sticky;
position: sticky;
left: 0;
right: 0;
top: 62px; /* Adjust this number if needed */
}
I'm currently using a plugin for this (but of course I'd like to do without the plugin).
My question is whether it would be possible to make the first menu sticky when using the code above, so that only the second menu remains sticky?
Many thanks.
Hi there,
Not quite sure if I understand.
If you only need one menu to be sticky, couldn't you just use the primary menu for it?
Let me know if I'm missing anything :)
Awesome :)