Key Features
-
Sticky menu that locks to the top on scroll
-
Start offset so it sticks after a set scroll distance
-
Optional shrink effect for header height and logo size
-
Controls for desktop tablet and mobile shown or hidden per device
-
Separate style for the sticky state such as solid background and soft shadow
-
Z index control so the header stays above sliders and popups
-
Per page switch to enable or disable on any page
-
Clean CSS and JS that respect Core Web Vitals and SEO
Header Installation
- Open WordPress, then navigate to Plugins> Add New> Upload Plugin.
- Upload the OceanWP Sticky Header zip from 8Muses.
- Activate the plugin
- Go to Appearance, then Customize, then Header, then Sticky Header.
- Turn on Enable Sticky Header
- Set trigger offset try 80 to 120 px.
- Set sticky height and logo scale for the shrink effect.
- Choose a sticky background and optional shadow.
- Set device visibility and z-index to layer elements effectively.
- Publish changes, then clear any cache and CDN.
How to Use
- Leave sticky on for the whole site to keep navigation close at hand.
- Turn it off on a landing page that needs a distraction free layout.
- Pick a slightly darker sticky background for contrast.
- Keep the sticky header a little shorter than the normal header.
- Scale the logo a bit smaller for more reading space.
- After any change, purge the cache and test on phones and tablets.
Performance
- Global off
Go to Appearance, then Customize, then Header, then Sticky Header, then switch Enable off, then Publish - Per page off
Edit the page, then open the OceanWP settings box, then turn sticky header off, then Update - Device based on
In the Sticky Header panel, uncheck desktop or tablet, or mobile as you prefer
Troubleshooting
- The header overlaps the first section.
Raise the z index and add top spacing that matches the height of the sticky header. - Menu flickers
Clear the cache and make sure only one sticky feature runs at a time. - Mobile menu sits behind the header.
Raise the z index for the header and for the off-canvas menu.


Reviews
There are no reviews yet.