Sleek Theme - Transparent Header on all pages

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

Hi @AM66

Kindly share with me the store URL

Best,

Daisy

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 :heart:

Best,

Daisy

Hi Daisy, thanks for your help. Unfortunately that didn’t work - this is my screenshot of the code - have i made an error?

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