[Support request] Best way to have sticky/fixed header

Home Forums Support [Support request] Best way to have sticky/fixed header

Home Forums Support Best way to have sticky/fixed header

  • This topic has 7 replies, 3 voices, and was last updated 5 years ago by David.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #851099
    Fabien

    Hi,

    What is the best way to have my header behaving as a sticky / fixed header ?

    Thanks

    #851158
    David
    Staff
    Customer Support

    Hi there,

    the simplest way is to use the nav as a header then you can use the sticky nav:

    https://docs.generatepress.com/article/navigation-as-a-header/

    Note: this method will be a one click option in the next release of GP Premium 1.8 – its currently in alpha for public testing.

    #851600
    Fabien

    Thanks, works like a charm. However, my logo is now super big, how can I fix the width ?

    Fabien

    #851694
    Leo
    Staff
    Customer Support

    Looks like you’ve fixed this?

    I see a normal size logo:
    https://www.screencast.com/t/OYgAlmwk2

    #852066
    Fabien

    It is too big for me, I’d like to make is smaller…

    #852234
    David
    Staff
    Customer Support

    The logo size is based upon the Menu Item height in the Customizer > Layout > Primary Navigation or Sticky Navigation.

    If you don’t want to reduce that height then you can increase the padding around the image with CSS:

    .main-navigation .navigation-logo img {
        padding: 15px;
    }
    #852811
    Fabien

    Thanks David !

    #853197
    David
    Staff
    Customer Support

    Glad to be of help

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.