All things Shopify and commerce
Hi,
I have tried every other method on the shopify discussions and none of them work.
I am trying to make the header transparent on the homepage only on my site. I have Dawn version 15.0
Hello @emmadub
U can use index class then and the add css
If you require further help to optimize your store, please don’t hesitate to reach out.
This contribution will always benefit you and you will get my full help easily and you can contact me easily.
I don't know what this means 💀 im not a developer, in laymans terms?
Then share store url i can fix it
If you require further help to optimize your store, please don’t hesitate to reach out.
This contribution will always benefit you and you will get my full help easily and you can contact me easily.
Hi, I messaged it to you
Okay
If you require further help to optimize your store, please don’t hesitate to reach out.
This contribution will always benefit you and you will get my full help easily and you can contact me easily.
Hi @emmadub
Would you share link of your store so I can provide the code to do that?
- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...Sign up now.
@emmadub Hey, thanks for posting here.
use the template condition to set a class for home page like this:
<header class="site-header {% if template.name == 'index' %} transparent-header {% endif %}">
then on base of class add CSS:
.transparent-header {
background-color: transparent;
position: absolute;
width: 100%;
z-index: 10;
}
.transparent-header .site-nav {
background-color: transparent;
}
I hope it will work otherwise contact me back,
by the way which theme are active on your store.
thanks.
Hi, Where do i add the codes? I have little-0 experience but i can copy and paste haha.
I am actively using Dawn 15.0.0 theme
@emmadub Hi ,
edit your theme.liquid and put it as a class in <header> tag:
{% if template.name == 'index' %} transparent-header {% endif %}
then open any .css file like theme.css, global.css, or base.css then put this code at bottom of the file:
.transparent-header {
background-color: transparent;
position: absolute;
width: 100%;
z-index: 10;
}
.transparent-header .site-nav {
background-color: transparent;
}
if it does not work so please get in touch with me. thanks
Hi, I do not have a <header> tag in my theme.liquid? I have <head>
I have the Dawn 15.0.2
@emmadub can you please search the header in the theme file like a header.liquid
I have the header.liquid file but where do I put it in there?
Discover how to increase customer engagement on your store with articles from Shopify A...
By Jacqui Apr 23, 2025Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025