Archived topic
"Stick" primary nav below header to "sticky" header
5 replies · Started by Lyle on August 23, 2016
Hi Tom,
As the subject mentions, I have a header that is set to "sticky" and the primary nav is set to "below header". What I am trying to accomplish is have the primary nav "stick" along with the header when the page is scrolled.
The GP Premium add-ons are not installed nor activated and I would like to do this without doing so. I know how I could do it using another plugin but I would prefer to keep it all "original GP" :)
Cheers!
Lyle
Hi Lyle,
This topic might help: https://generatepress.com/forums/topic/how-can-i-create-a-fixed-header-and-top-menu-in-the-generate-press-theme/#post-31579
Let me know :)
Thanks, Tom, but that solution requires the GP Premium Hooks add on and I would like to avoid using any add on. Is there some code that could be added to Simple PHP? Simple CSS is already present and in use.
GP Hooks just writes the functions for you.
You can write the functions that hook into the hooks in Simple PHP: https://generatepress.com/knowledgebase/hook-list/
Thanks Tom, I'll give that a go later today and report back :) Thanks so much for your tremendous support!
Happy to help :)