Creating a Sticky Header (WPO 2.0)

 | SubscribeFavorite

Viewing 2 reply threads
  • Author
    Posts
    • #6452REPLY

      Chris F

      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.

    • #6456REPLY

      [email protected]

      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

      • #6461REPLY

        Chris F

        Keymaster

        Thanks for letting me know Jack. Are you using the latest version (WPO 2.0.0.4)?

      • #6487REPLY

        Ed

        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.

      • #6491REPLY

        Chris F

        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/

    • #6492REPLY

      Ed

      Participant

      Ok will do Chris.