I have used the below code to set up my transparent header to only show on the home page in Dawn V15.03.
However the white font doesn’t show up when I scroll as my sticky menu background is white so I need to change the font on scroll only for the sticky header to be black.
Please can you also help with the other issues below, all are connected to the transparent header.
-
I need the header font on all other pages EXCEPT the homepage to be black as this is not set to transparent header.
-
I need the header to stay sticky on all pages not just the index page.
-
Why when I scroll down the homepage and the sticky header activates does it not return to transparent when I scroll back up?
Thank you so much for your help.
My current code:
{% if template contains ‘index’ %}
.header-wrapper{ background: transparent; position: absolute; width: 100%; }{% endif %}
.scrolled-past-header > sticky-header.gradient {
background: #ffffff !important;
padding-bottom: 0.5rem;
}