This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Customize Home Page Header

Resolved 3 replies premiumthemetheme-vantage
11 years ago · Last reply by Andrew Misplon 11 years ago

I am developing this site for a client and would like to have the header on the home page only. I have disabled the header on all of the pages using this code:
header#masthead .hgroup {
display: none;
}
I have created a banner for the home page and inserted it as a Meta Slider, but I don’t like it below the menu bar. I have tried different coding to put the header on the home page, but I am not successful. Is there css code that I can use or does the header.php file have to be edited? I have created a child theme for the site.

URL: http://sesaya.ca

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

3
  1. Andrew Misplon Staff 11 years, 4 months ago

    Hi sesaya

    You could try the following:

    header#masthead .hgroup {
    display: none;
    }
    
    .home header#masthead .hgroup {
    display: block;
    }
    

    That should display your header on the home page only.

    Hope that helps.

  2. sesaya 11 years, 4 months ago

    Thank you. I didn’t put the .hgroup in my attempts. This worked like a charm!

  3. Andrew Misplon Staff 11 years, 4 months ago

    Super, glad to hear that helped.

Replies on this thread are closed.

Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Have a different question or issue?

Start New Thread