Creating a Sticky Header (WPO 2.0)
-
AuthorPosts
-
-
Keymaster
Here is the CSS shown in the video:
body { padding-top: 100px; /* adjust as necessary */ } .navbar { position: fixed; top: 0; width: 100%; z-index: 1000; background: #999; padding: 10px 0; }
NOTE: This method only works with WPO 2.0. If you are using WPO 1.0 – Click Here.
-
Participant
Thanks Chris,
That works.
Just an observation… I had to put this CSS in the wordpress custom CSS field.
Putting this CSS in the WPO options CSS did not work for me.Jack
-
Keymaster
Thanks for letting me know Jack. Are you using the latest version (WPO 2.0.0.4)?
-
Participant
Hey Chris,
I’m using WP Optimal 2.0. I found that your suggestion will work using “Navbar 3” because the menu items are centered.
But because the width is 100% its causes some overflow issues with the other Navbar menu items on the right hand side.
Any suggestions about how to handle this?
Thanks.
-
Keymaster
Hi Ed – Please send a note of this to the support desk and include a screenshot of the issue at hand, or the URL so we can take a deeper look.
https://members.wpoptimal.com/support/
-
-
Participant
Ok will do Chris.
-