Shopify themes, liquid, logos, and UX
Hi,
I would like to have the header transparent. I have tried everything, but it is not working.
Anyone who can help? Website is lash-ease.com
Thank you
Solved! Go to the solution
This is an accepted solution.
Try this code.
{% if template.name == 'index' %}
<style>
x-header.header {
position: absolute !important;
background: #0000002e !important;
width: 100% !important;
box-shadow: unset !important;
color: white !important;
}
img.header__logo-image {
display: none;
}
.header__logo-image--transparent {
opacity: 1 !important;
display: block !important;
position: relative !important;
}
</style>
{% endif %}
Hey @M161
Follow these Steps:
1) Go to Online Store
2) Edit Code
3) Find theme.liquid file
4) Add the following code in the bottom of the file above </body> tag
<style>
.header {
position: absolute !important;
background: transparent !important;
width: 100% !important;
box-shadow: unset !important;
}
</style>
RESULT:
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
Thanks it works!
In prestige you have the option to have a different logo for a transparante header. Is it possible to show that logo? Or change the logo only for the homepage? And I see the header is also transparent on the product page, but if possible I would only like the homepage.
Hi @M161,
Go to Shopify Admin → Online Store → Themes.
Click Edit Code.
Open the Layout folder and find theme.liquid.
Before the </head> tag, paste this code:
{% if template.name == 'index' %}
<style>
x-header.header {
position: absolute !important;
background: #0000002e !important;
width: 100% !important;
box-shadow: unset !important;
color: white !important;
}
</style>
{% endif %}
hey, can this shadow be removed?
Remove this
background: #0000002e !important;
Add this code below
background: transparent !important;
Thanks!! is it possible to do a different logo only on the homepage? In prestige you have the option to have a different logo for a transparante header, but shows only on slideshow.
{% if template.name == 'index' %}
<style>
x-header.header {
position: absolute !important;
background: #0000002e !important;
width: 100% !important;
box-shadow: unset !important;
color: white !important;
}
img.header__logo-image {
display: none !important;
}
.header__logo-image--transparent {
opacity: 1 !important;
display: block !important;
position: relative !important;
}
</style>
{% endif %}
the logo doesn't show now
This is an accepted solution.
Try this code.
{% if template.name == 'index' %}
<style>
x-header.header {
position: absolute !important;
background: #0000002e !important;
width: 100% !important;
box-shadow: unset !important;
color: white !important;
}
img.header__logo-image {
display: none;
}
.header__logo-image--transparent {
opacity: 1 !important;
display: block !important;
position: relative !important;
}
</style>
{% endif %}
Thanks a lot!
Hi @M161
x-header.header *{
color: white !important;
}
h1.header__logo a > img:nth-child(2) {
display: none !important;
}
h1.header__logo a > img:nth-child(3) {
display: block !important;
opacity: 1 !important;
position: relative !important
}
I hope this helps
Best,
Daisy
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025