Hello community !
I managed to apply a transparent header on the homepage of my website (theme CRAFT), change the text colour when transparent, and change the background color of my sticky header (see images below). But i still having some trouble to the colour of my logo, to applied the transparent header only on my homepage.
Here is the code I applied in base.css :
/* Transparent header */
{% if template.name == “index” %}
.header-wrapper{
background: transparent !important;
position: absolute;
width: 100%;
}
.header__active-menu-item,
.header__icon,
.header__menu-item {
color: #F8F7F3 !important;
}
{% endif %}
/* Sticky Header Color */
.shopify-section-header-sticky .header-wrapper{
background: var(–gradient-background) !important;
}
.shopify-section-header-sticky .header__active-menu-item,
.shopify-section-header-sticky .header__icon,
.shopify-section-header-sticky .header__menu-item {
color: rgba(var(–color-foreground),.75) !important;
}
I’m still looking a solution for:
-Change the color of my logo to off-white like the text on the transparent header, (it’s a PNG logo and it’s not black so the invert option doesn’t work for me)
-Change the color of the text of the drop-down menu in the transparent header, because currently it’s white on white
-On my other pages of the website, my transparent header also applies, even if I put an “{% if template.name == “index” %}” in my code so that it would only be applied to the home page.
Moreover, as you can see on the image, the transparent header is superposed on the top page, as if there was no more margin provided for the menu…
-Finally I noticed that when I scroll down, my announcement bar disappears, I have no idea if this is normal, or if my code changed this, but I wish 'it remains displayed above the sticky header..
That’s it, i know it’s a lot but if someone in the community have the solution i would be very very thankful

thank you very much in advance

Cécile.




