As you can see the header background is transparent and when you scroll it is white, which is great!
The only issue is that our logo is in black and i would like it to be in white when the background is transparent and then change to black when i scroll and the background changes to white. The logo is a png.
As well as the logo, i would need the other features such as :shop icon, login icon, currency icon, search icon a.s.o to change colours as well from white to black.
To complete your requests, please follow these steps:
Go to Shopify Admin > Online Store > Theme > Customize > Theme Settings > Custom CSShttps://prnt.sc/i8ljAMlHJUKl
Paste the code provided into the Custom CSS section.
.section-header .header-wrapper * {
fill: white !important;
color: white !important;
}
html .section-header.scrolled-past-header .header-wrapper * {
fill: black !important;
color: black !important;
}
This will change everything you requested to black, except the logo, as it is image (png) so it can’t be changed using the code, but you need to use an image changing tool like Photoshop, Canva, and re-upload it
Hello, thank you for your help. Unfortunately it didnt exactly work. It did turn white, but not black when scrolling.. do you think you have a solution for that? And also with the logo?