A user seeks to make their site header transparent only on the homepage, allowing a slideshow to display behind it, while keeping the header opaque on other pages.
Initial Solution:
A helper provided CSS code to be added in theme.liquid below the <head> tag
This successfully made the header transparent but applied the effect site-wide
Problem:
The transparent header appeared on all pages (including product pages), which was undesirable
User wanted transparency limited to homepage only
Additionally requested the header turn white and sticky when scrolling on the homepage
Final Solution:
Updated code wrapped in Liquid conditional: {%- if template.name == 'index' -%}
This targets only the homepage template
Additional code added above the </body> tag for scroll behavior
Screenshots and Google Drive links provided for reference
Outcome: Issue resolved successfully with the homepage-specific transparent header implementation.
Summarized with AI on November 12.
AI used: claude-sonnet-4-5-20250929.
Hi there! I am trying to make the header transparent on my site’s homepage so that the slideshow will show up behind it. This is what it currently looks like:
Go to your theme’s “Edit Code” Option, then in the search bar type “theme.liquid”
Below the tag “” tag paste the following. Screenshot attached for reference.
Screenshot is for reference only, the correct code to paste is the one shown above.
That worked to make the header transparent, but it’s transparent across the whole site now and I want it only on the homepage. It looks like this on the product pages which isn’t ideal: