A user wanted to make the header transparent only on the home page of their Dawn 12.0 theme, but their CSS code was applying the transparency across all pages.
Solution provided:
Remove the global background: transparent; CSS rule from the header wrapper
Add conditional code to the theme.liquid file that targets only the home page using {% if template == 'index' %}
Place the code snippet above the </body> tag (not below it)
Resolution:
The original poster successfully implemented the fix by inserting the conditional CSS/markup code in the correct location within theme.liquid. The initial attempt failed because the code was placed below the <body> tag instead of above it.
Additional video resources were shared showing how to create transparent headers specifically for the home page.
Summarized with AI on November 6.
AI used: claude-sonnet-4-5-20250929.
Hello! I’m working a website and I want the banner image on the home page to bleed into the header. I was able to do this with the following CSS code, but now the header is transparent on ALL pages.
Nevermind I was able to fix it - thank you for your help!! I pasted the following code at the bottom of the theme.liquid file (above tag) to make it work.