Рет қаралды 24,166
I'll show you how to easily add a sticky header, sticky menu or sticky navigation to ANY WordPress theme. There are 3 methods, and they all work great.
Sticky navigation can be a great addition to your website. It creates a better UX for your visitors and helps them quickly find other information on your site.
And while many themes now include a sticky menu feature, not all do. This is especially true of free themes. Fortunately, there are several plugins that can add fixed menu functionality in a few clicks. Or you can achieve the same thing with pure CSS.
I'll even show you how to fix annoyances like the admin bar overlapping your header, or anchor links that get hidden when you scroll to them.
**************************************
Video Sections
**************************************
0:00 - intro, and sticky header options
0:30 - How to make sticky navigation in GeneratePress theme
1:04 - Sticky menu w/ CSS (no Javascript required)
2:20 - Adding Z-index
2:34 - Fix admin bar overlapping fixed navigation
2:55 - Responsive media query (breakpoint)
3:25 - Sticky menu Plugins
3:45 - Setup 'My Sticky Menu' plugin
5:10 - add offset for Jump/Anchor links
5:40 - Outro & next steps
#wordpress #stickymenu