Make the main nav sticky

open (5 posts) (3 voices)

  1. Howdy guys,

    I'm looking to make the main nav on my site sticky across the board on all pages and posts. Any ideas?

    Regards, Larry

    http://larrygmaguire.com/blog

    Posted 2 years ago #
  2. Elliott
    Support

    Hello lgmsites,

    Add this to your custom CSS.

    #primary_menu { position: fixed !important; }
    Posted 2 years ago #
  3. That worked however the main nav now sits behind all other content. Instead of the content scrolling up behind the main nav it scrolls up in front of it.

    Posted 2 years ago #
  4. Elliott
    Support

    Try adding this.

    #primary_menu { z-index: 999 !important; }
    Posted 2 years ago #
  5. Society3
    Member

    This may help a bit further:
    #primary_menu { z-index: 999; position: fixed; background-color: rgba(120, 135, 148, 0.3); width:100%; !important; }

    Posted 1 year ago #

Reply

You must log in to post.

Construct WordPress Theme
Construct wordpress theme
Myriad WordPress Theme
Myriad wordpress theme
Method WordPress Theme
Method wordpress theme
Fusion WordPress Theme
Fusion wordpress theme
Elegance WordPress Theme
Elegance wordpress theme
Echelon WordPress Theme
Echelon wordpress theme
Dejavu WordPress Theme
Dejavu wordpress theme
Modular WordPress Theme
Modular wordpress theme