- This topic has 15 replies, 4 voices, and was last updated 8 years, 9 months ago by
Tom.
-
AuthorPosts
-
December 10, 2014 at 3:39 am #53431
Ted van Vliet
Hi Tom,
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?Thanks! Ted
December 10, 2014 at 11:29 am #53622Tom
Lead DeveloperLead DeveloperHi Ted,
Thanks!
This post should help: http://generatepress.com/forums/topic/how-can-i-create-a-fixed-header-and-top-menu-in-the-generate-press-theme/#post-31579
Let me know if you have any questions 🙂
December 11, 2014 at 11:54 am #53829Ted
Hi Tom,
Thanks! I made the menu fixed now. Is there a possibility to make both the header and the menu fixed?
Ted
December 11, 2014 at 7:50 pm #54066Tom
Lead DeveloperLead DeveloperThe 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….
December 14, 2014 at 9:26 am #54622Tom
Lead DeveloperLead DeveloperCan you link me to your site? 🙂
December 14, 2014 at 9:31 am #54623Ted van Vliet
December 14, 2014 at 9:34 am #54624Tom
Lead DeveloperLead DeveloperIt 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
Thanks Tom!
That does the job!
December 14, 2014 at 10:28 am #54660Tom
Lead DeveloperLead DeveloperAwesome! 🙂
May 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 #324519Tom
Lead DeveloperLead DeveloperIt 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 #324545Tom
Lead DeveloperLead DeveloperDoes the horizontal scroll disappear when you remove the sticky header CSS?
May 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
-
AuthorPosts
- You must be logged in to reply to this topic.