• Resolved rafaelzenato

    (@rafaelzenato)


    Hey guys,
    I’m changing my site a bit and I wanted the header to appear just on the homepage.
    I also wanted to add a “Home” at the navbar so people can go to homepage when they’re in posts, other pages or categories.

    I’m using the “Theme Logo” plugin to add my logo to the header.

    Any suggestions of how I can do this?

    Thanks a lot =)

Viewing 7 replies - 1 through 7 (of 7 total)
  • sacredpath

    (@sacredpath)

    Automattic Happiness Engineer

    Hi there, I would suggest creating a Custom Menu (if you have not already) and then you can add a Custom Link to that menu for “Home”.

    Moderator Kathryn Presner

    (@zoonini)

    In terms of the header only appearing on the homepage, are you referring to everything in the top strip above the menu?

    If so, try this in your custom CSS, in this order:

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

    Don’t edit the theme files directly, otherwise your changes will be overwritten every time the theme is updated to the latest version.

    Since you’re already using Jetpack, an easy way to add custom CSS is to activate the Custom CSS module. You’ll then add your custom CSS in the new stylesheet editor that’ll appear in your dashboard, under Appearance > Edit CSS.

    Thread Starter rafaelzenato

    (@rafaelzenato)

    sacredpath Thanks a lot for your help =)

    Is that possible to the “Home” option not be shown on the homepage?

    Thank you again.

    Thread Starter rafaelzenato

    (@rafaelzenato)

    Hey Kathryn

    That worked just awesomely.
    Thanks heaps for your help =)

    Moderator Kathryn Presner

    (@zoonini)

    Glad that worked!

    Is that possible to the “Home” option not be shown on the homepage?

    Yes, you can hide the home menu item just on the homepage with this:

    .home .menu-item-1557 {
     display: none;
    }

    Thread Starter rafaelzenato

    (@rafaelzenato)

    Hey Kathryn!

    Thank you so much again, that’s exactly what I needed =))

    Moderator Kathryn Presner

    (@zoonini)

    Excellent, and you’re very welcome!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Header just on Homepage’ is closed to new replies.