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 and Accept solution! Support me: Buy coffee
- Ryviu - Reviews & QA app, collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy app: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. 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
Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024The Hydrogen Visual Editor is now available to merchants in Shopify Editions | Summer '...
By JasonH Sep 2, 2024Note: Customizing your CSS requires some familiarity with CSS and HTML. Before you cust...
By JasonH Aug 12, 2024