Dawn theme - Change icons to white on home page only.

Solved

Dawn theme - Change icons to white on home page only.

amandaZ2020
Explorer
59 2 9

Hello 

 

I would like to change all the icons on the front page of my homepage to white, but leave the rest of the store with black icons. The store is currently set to black icons across the site. 

 

Can anybody assist please. 

 

https://www.krixcollection.com.au/

password: ontaub 

 

amandaZ2020_0-1716783627005.png

 

Accepted Solution (1)

JasmeetVT14313
Shopify Partner
292 63 77

This is an accepted solution.

Hi @amandaZ2020 

Try adding the below code to the theme.liquid just before "</body>"

{% if template contains 'index' %}
<style>
img.header__heading-logo {
    filter: invert(1);
}
.header__icon {
    color: #fff !important;
}
</style>
{% endif %}

 If this information was helpful to you, please give it a Like. If it resolved your issue, kindly hit Like and mark it as the Solution! Thank you!

- VTN Customer Dashboard enhances your customer's dashboard with advanced features, profile management, and order tracking. Free trial available.
- Feel free to contact me at jasmeet.kaur@vtnetzwelt.com

View solution in original post

Replies 4 (4)

JasmeetVT14313
Shopify Partner
292 63 77

This is an accepted solution.

Hi @amandaZ2020 

Try adding the below code to the theme.liquid just before "</body>"

{% if template contains 'index' %}
<style>
img.header__heading-logo {
    filter: invert(1);
}
.header__icon {
    color: #fff !important;
}
</style>
{% endif %}

 If this information was helpful to you, please give it a Like. If it resolved your issue, kindly hit Like and mark it as the Solution! Thank you!

- VTN Customer Dashboard enhances your customer's dashboard with advanced features, profile management, and order tracking. Free trial available.
- Feel free to contact me at jasmeet.kaur@vtnetzwelt.com
amandaZ2020
Explorer
59 2 9

Thank you so much!! @JasmeetVT14313. Perfect! 

Is there a way to keep the logo black though? or remove the logo from the home page completely?

 

 

JasmeetVT14313
Shopify Partner
292 63 77

HI @amandaZ2020 
In that case you can update the above given code with

{% if template contains 'index' %}
<style>
img.header__heading-logo {
    opacity: 0;
    visibility: hidden;
}
.header__icon {
    color: #fff !important;
}
</style>
{% endif %}
- VTN Customer Dashboard enhances your customer's dashboard with advanced features, profile management, and order tracking. Free trial available.
- Feel free to contact me at jasmeet.kaur@vtnetzwelt.com

BSSCommerce-HDL
Shopify Partner
2305 835 909

Hi @amandaZ2020

You can try this code by following these steps:

Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code

Step 2: Search file theme.liquid

Step 3: Inside tag head. After you'll insert my code inside it

BSSTechVenture_0-1716784544718.png

 

{% if template.name == 'index' %}
    <style>
      .header__heading-logo {
         filter: invert(1) !important;
      }
      summary.header__icon svg path {
        fill: white !important;
      }
    </style>
{% endif %}

 

 

Here is result: 

BSSTechVenture_0-1716784757249.png

 

 

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍

 

 

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now