[Resolved] different header on front page?

Home Forums Support [Resolved] different header on front page?

Home Forums Support different header on front page?

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #978421
    Melissa

    I currently display my site name and main menu in the header. I would like to remove the site name from the header on the front page. Is this possible?

    #978537
    Leo
    Staff
    Customer Support

    Hi there,

    You can use the disable elements add-on to disable the site header on home page:
    https://docs.generatepress.com/article/disable-elements-overview/

    Let me know if this helps πŸ™‚

    #978548
    Melissa

    I don’t want to lose the whole header. I want the bar and the menu to stay. I would just like to remove the site title. Can I set a different header for the front page?

    #978567
    Leo
    Staff
    Customer Support

    Try this CSS:

    .home .site-branding {
        display: none;
    }

    Adding CSS: https://docs.generatepress.com/article/adding-css/

    Let me know if this helps πŸ™‚

    #978633
    Melissa

    That didn’t seem to have any effect.

    #978640
    Melissa

    I changed is to the below and it worked. Thanks for helping.

    .home .site-header .site-branding {
        display: none;
    }
    #978647
    Leo
    Staff
    Customer Support

    Glad you’ve figured out πŸ™‚

    #978648
    Melissa

    Would it be possible to then move the menu to float in the center of the header instead of the right –only on the front page?

    #978649
    Leo
    Staff
    Customer Support

    Try this:

    @media (min-width: 769px) {
        .home .inside-header {
            display: flex;
        }
    }
    #978653
    Melissa

    Perfect! Thanks!

    #978683
    Leo
    Staff
    Customer Support

    No problem πŸ™‚

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