I am currently working on a few new designs for my website and I want to do a transparent header. is there a way that the transparent header is only on the home page and none of the other pages? and is there a way to get a hover effect for the desktop version so when i hover over the header with my mouse it goes back to solid white color?
The exact class names (.site-header, .header-wrapper, etc.) depend on your theme, so you may need to inspect your theme’s HTML and adjust selectors accordingly.
If you tell me your theme name, I can give you a more precise version.
Welcome to the Shopify Community! Please share your store URL and password (if it’s password-protected), so I can check and provide you with the exact solution.
Yup, that’s totally doable, a quick CSS tweak can make the header transparent only on the homepage and flip to solid white on hover.
You will just need a developer to add it in.
Good idea is to search the forum first.
You may try this solution, for example:
And if you add the “Custom liquid” section (as suggested in the solution) not in the Footer area, but inside your Template, the code will apply only to this template – meanin, only for the homepage, for example.
Would be cool to have the header transparent only on homepage and when hover it goes back to white with the dropdown menu. and for mobile also only on homepage transparent but when you click the menu bars, it goes back to white
Hi there @LeandroS
Yes,this is generally done via theme customization.
Transparency for homepage only Most themes allow a condition in Liquid like checking if the template is index and adding a “transparent-header” class only on the homepage, rest of the templates has solid header.
For the hover effect on desktop use CSS like header:hover background: white; change text/icon colors for contrast at the same time from transparent to white on hover. Some themes come with that behavior pre-built in header settings or sticky header options, so check theme editor frst before getting into code.
I realize this is from a while ago, but I wanted to check in and see if anyone has explored any new techniques for customizing the Dawn theme’s header. With all the updates Shopify rolls out, there might be fresh insights or optimizations we can share. Anyone discovered a handy tip recently? Let’s keep the adaptation chatter alive—especially if anyone’s tried something that worked flawlessly!