Hello, I’m using the Sleek theme for my site and would like a transparent header for all my pages (not just the homepage). Can somebody please help by providing the code and instructions on where to place it?
Thanks very much in advance!!
Hello, I’m using the Sleek theme for my site and would like a transparent header for all my pages (not just the homepage). Can somebody please help by providing the code and instructions on where to place it?
Thanks very much in advance!!
Hi @AM66 , kindly provide your store URL please and if it is password protected, please share the password as well. Thanks
thank you, it’s fansycake.com with password: milday
Currently the homepage has a transparent header, but I’d like the remaining pages to all have a transparent header - thank you!
thank you, it’s fansycake.com with password: milday
Currently the homepage has a transparent header, but I’d like the remaining pages to all have a transparent header - thank you!
HI @AM66
In order to fulfill your request, please follow these steps
Step 1: Go to Shopify Admin → Online Store ->Theme → Edit code
Step 2: Search file theme.liquid
Step 3: Insert this code above
{% if template.name == "index" %}
{% style %}
header.header {
background: transparent !important;
}
main#MainContent {
margin-top: -110px !important;
}
.header:before {
background: transparent !important;
}
{% endstyle %}
{% endif %}
Here is the result: https://prnt.sc/EoGWgVLx7Squ
I hope this helps ![]()
Best,
Daisy
HI @AM66
Please try again with this code
{% if template.name != "index" %}
{% style %}
header.header {
background: transparent !important;
}
main#MainContent {
margin-top: -110px !important;
}
.header::before {
background: transparent !important;
}
{% endstyle %}
{% endif %}
Best,
Daisy