I’m trying to get the header and menu below it to be fixed/sticky and always be visible but can figure out how to do both.
Leave a Reply
You must be logged in to post a comment.
I’m trying to get the header and menu below it to be fixed/sticky and always be visible but can figure out how to do both.
You must be logged in to post a comment.
This jQuery can be implemented in the theme. You adjust the number to however far down the page you want to scroll before the navigation appears. Then you style the
fixed-nav
class in the CSS to override the navigation’s styles and make it fixed to the top of the page.jQuery:
CSS:
Source:
http://www.sutanaryan.com/how-to-create-fixed-menu-when-scrolling-page-with-css-and-jquery/