Brad Dalton of WPSites.net shares wonderful “How-To” instructions for most anything you want to achieve with your website.
There’s many ways to make your nav menu sticky. The easiest way is to use pure CSS code. You could also install a plugin or use a combination of CSS, PHP & Javascript.
In this very short tutorial, i’ll provide you with the CSS code to make your nav menu sticky in any theme.
via How To Make Your Nav Menu Sticky.
You can also see the Sticky Menu in action on Brian Gardner’s Sample Child theme here. Just scroll the screen down to see it.
Why recreate the wheel when you can share the work of others?
I love sharing!
Thanks Anita.
Your new site looks great!
You’re welcome and thank you too. I am going to put sections on here for people I follow and who provide coding snippets and help such as yourself. You’ve been a life saver for me on a few things.
Thanks for sharing the resource. Just so you know, the tutorial by WPSites.com is more like “fixed” or “static” menu while the one by Brian is a sticky menu. Somewhat different.
I have heard having a search bar do the same is a good thing too, maybe you could figure out that?
It prompts more searches which gives the owner of the site more or extra ideas what people are looking for on their sites
Hi Chris, I am sorry I didn’t see this in my approval queue.