Hi Shopify Experts,
I wish to change my header color to white on scroll but ones it reaches to the top of the page, it should be transparent as it is now (Image below). my shop link is www.pawtietime.com
Thank you in advance!
Hi Shopify Experts,
I wish to change my header color to white on scroll but ones it reaches to the top of the page, it should be transparent as it is now (Image below). my shop link is www.pawtietime.com
Thank you in advance!
For change color of background when header sticky and not sticky follow below steps:
sticky-header{
background: #fff !important;
transition: all .2s ease;
}
.shopify-section-header-hidden.shopify-section-header-sticky sticky-header{
background: transparent !important;
}
This wokrs well for your site.
Best Regards !
hi there,
i tried your code but its not exactly what i want.
i want the header to remain as it is currently (transparent) when on the top but only when it moves away from the top, it should turn white.
Hi @ridhi01
You can try this code by following these steps:
Go to Online store => themes => actions => edit code and add this code on file theme.liquid before tag
Hope this answer helps.
Best regards,
Victor | PageFly
thank you so much victor! this worked
Glad that i can help you
Hi,
I am also interested in the same thing. want to keep my header transparent but white on scroll. I’ve tried this code but it doesn’t change anything other than making my header only transparent. If you could help me that would be great.
My store link: https://esterswim.com/
Thank you.
Hello. I am interest to the font for text used in the image above, as I want to use something similar to my page. Can you advise? Thanks!
