[Resolved] Page header content should not fixed while header is fixed

Home Forums Support [Resolved] Page header content should not fixed while header is fixed

Home Forums Support Page header content should not fixed while header is fixed

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #494213
    David

    Hello
    I fixed site title or header using the following techniques.

    In GP Hooks
    Before Header
    <div class="custom-fixed-header">

    After Header
    </div>

    In CSS

    .custom-fixed-header {
          position: fixed;
          top: 0;
          width: 100%;
          z-index: 2000;
    }
    
    .custom-fixed-header + * {
          padding-top: 120px;
    }

    I activated GP premium page header. It will also become fixed while on scroll. I don’t want to fix page header content. How to exclude page header content while header is fixed?
    Thank you.

    #494500
    Leo
    Staff
    Customer Support

    Hi there,

    Can you link us to the page in question?

    You can edit the original post and use the private URL field.

    #495090
    David

    Hi
    Updated my site details on my previous reply’s URL field.
    Thank you.

    #495438
    Leo
    Staff
    Customer Support

    So just the navigation similar to the layout of this site?

    If so try this method instead: https://docs.generatepress.com/article/navigation-logo/#navigation-as-header

    #495834
    David

    Thank you.

    #495838
    Leo
    Staff
    Customer Support

    No problem!

    #502636
    David

    If I remove the header ( You suggested this method above – https://docs.generatepress.com/article/navigation-logo/#navigation-as-header) Then, there is any negative SEO issues arise?
    Thank you

    #503003
    Leo
    Staff
    Customer Support

    Should be fine as long as you have a navigation logo uploaded and the site title and tagline filled (and set to hidden)

    This site is using the same idea 🙂

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