How can I make my header transparent on mobile only when its near the banner. Here is an example of what I am looking for!
The header comes back to its normal color when you scroll down! My website link is:
A user seeks to make their header transparent on mobile devices only when positioned over the banner section, with the header returning to its normal color upon scrolling.
Visual Reference:
Solutions Provided:
Two community members offered similar CSS-based solutions:
theme.liquid file, specifically above the </head> tag.One responder included a result screenshot showing the implementation. The discussion appears resolved with actionable technical solutions provided.
How can I make my header transparent on mobile only when its near the banner. Here is an example of what I am looking for!
The header comes back to its normal color when you scroll down! My website link is:
Hi @omar_ab ,
Step 1: Go to Shopify Admin → Online Store ->Theme → Edit code
Step 2: Search file theme.liquid
Step 3: Insert this code above tag:
Here is result:
Hope this can help you,
If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you ![]()
Hi @omar_ab
You can do that by adding this code to your theme.liquid file, after in Online Store > Themes > Edit code