I am using the Dawn Theme V15 for my website and I would like to create a transparent header that transitions to a white sticky header as the user scrolls. Can you provide detailed instructions on how to achieve this by changing only the CSS code, if possible? If it’s not feasible without adding extra JavaScript or Liquid code, that would be fine as well.
Website: https://plomo.shop
1 Like
- Here is the solution for you @8marketing
- Please follow these steps:
- Then find the base.css file.
- Then add the following code at the end of the file and press ‘Save’ to save it.
sticky-header.header-wrapper {
background-color: transparent !important;
}
- Here is the result you will achieve:
- Please press ‘Like’ and mark it as ‘Solution’ if you find it helpful. Thank you.
I have added it, but now you can take a look at my Page, it is transparent if I scroll down, but it should be white if I scroll down and be transparent normally and just on the Homepage.
1 Like
I see it is having a transparent background in every page. Can you share the page url without transparent background?
Now it should be normal. I have deleted the Code from .css
It should look like this Page : https://www.zeazonclo.com/
1 Like
Hello @8marketing
Go to online store ---------> themes --------------> actions ------> edit code------->theme.liquid file
and add this code below to your theme.liquid file, after .
{% if template == 'index' %}
{% endif %}
If this was helpful, hit the like button and mark the job as completed.
Thanks
1 Like
Yes, it works, but I would like also the Elements like Cart, Search, Navigation and Logo in white on the transparent Header, and on the Sticky header it should be like it is.
My Page is https://plomo.shop
And now I see that your code doesn’t work correctly, because if I’m on mobile, and open Menu on Homepage, the header stays transparent and it doesn’t looks good.