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
Hi sesaya
You could try the following:
That should display your header on the home page only.
Hope that helps.
Thank you. I didn’t put the .hgroup in my attempts. This worked like a charm!
Super, glad to hear that helped.