What if you wanted a different header color JUST for the home page?
This is the snippet you’ll need.
.home #main-header, .home #main-header.et-fixed-header { background-color: transparent; } .home #page-container { padding-top: 0 !important; }
[sc name=”customcss”]
Of course, you can change the colors easily by swapping out the ‘transparent’ to something else.
Cool, I’ll just sign off with just that. Maybe I should get into dissecting the header sometime.. hmm.
[sc name=”learn css”]
Danel says:
How can I push the header down to make a full bleed nav and slider style?
David says:
Hi PK,
I followed your tutorial but it pushes my hero section image into the header section.
Peter e says:
Hi, when I apply the
.home #page-container {
padding-top: 0 !important;
}
It looks as desired, but when I scrolll down there is a slight jump, and then when I scroll back to the top there is a jump again, and the white background shows for a second. Any idea what is happening there?
Mary Jo says:
Who needs to go look at Divi FB group when search results bring PK himself. Nice job w/SEO!
CORY says:
Hi!
I love the CSS and the transparent header on just the home page. But it makes the sticky nav transparent on scroll, too. Is there an addition to the CSS to retain the sticky nav customization as it is throughout the site?
Crawford says:
This is exactly what I’m looking for but I’m not 100% sure where to put that extra bit of css.
Thanks.