- This topic has 15 replies, 4 voices, and was last updated 3 years, 6 months ago by Tom.
December 10, 2014 at 3:39 am #53431Ted van Vliet
Thanks for the theme. Bought all the addons and it works great!
Q: is there a pliggin available to make both the header and the navigation sticky? So the page content scrolls and the header end vavigation stay fixed at the top of the page?
i olve codeDecember 10, 2014 at 11:29 am #53622TomLead DeveloperLead Developer
Let me know if you have any questions 🙂December 11, 2014 at 11:54 am #53829Ted
Thanks! I made the menu fixed now. Is there a possibility to make both the header and the menu fixed?
TedDecember 11, 2014 at 7:50 pm #54066TomLead DeveloperLead Developer
The instructions in the post I linked to will make the entire header sticky, as long as you use GP Hooks to include the new HTML container for both the header and navigation.
Let me know 🙂December 14, 2014 at 8:33 am #54611Ted van Vliet
I can only get the menu sticky with that code….
i olve codeDecember 14, 2014 at 9:26 am #54622TomLead DeveloperLead DeveloperDecember 14, 2014 at 9:31 am #54623Ted van Vliet
i olve codeDecember 14, 2014 at 9:34 am #54624TomLead DeveloperLead Developer
It looks like the slider you’re using for your header has been added to the wp_head hook, which will add it into the
<head></head>section of the site, which isn’t correct.
Try adding that slider into the “Before Header Content” hook instead.
Let me know 🙂December 14, 2014 at 10:20 am #54659Ted van Vliet
That does the job!
i olve codeDecember 14, 2014 at 10:28 am #54660TomLead DeveloperLead DeveloperMay 26, 2017 at 9:49 am #324514Kali
I have a header added through gp hooks and the div container set up as recommended above and it is still not giving me the result I need which is to keep my header on top of my sticky nav. please help!
http://trucksplusomaha.comMay 26, 2017 at 9:54 am #324519TomLead DeveloperLead Developer
It looks like you didn’t add the CSS provided: https://generatepress.com/forums/topic/how-can-i-create-a-fixed-header-and-top-menu-in-the-generate-press-theme/#post-31579
You’ll also want to turn off your sticky navigation.May 26, 2017 at 9:58 am #324525Kali
thanks Tom! I had the css in and took it back out but still had the sticky nav setting turned on. Any idea why I’m getting a horizontal scroll when the sticky header is applied?May 26, 2017 at 10:30 am #324545TomLead DeveloperLead DeveloperMay 26, 2017 at 11:35 am #324584Kali
the nav is giving it about a 10px scroll and is there whether or not the sticky nav is there
- You must be logged in to reply to this topic.