Changing Cart color on different Pages

Hello guys, as you can see I have the cart icon in white, which is perfect for my home Site. But I need it in black everywhere else! Can anybody help me out?

https://luviera.store/

password: bautso

Hey @ReviveShop

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 tag

{% if template.name != "index" %} 

{% endif %}

If I managed to help you then, don’t forget to Like it and Mark it as Solution!

Best Regards,
Moeed

1 Like

Hi @ReviveShop ,

  1. Go to Online Store → Theme → Edit code.
  2. Open your theme.liquid file
  3. In theme.liquid, paste the below code before
{% if template.name != "index" %} 

{% endif %}

If my reply is helpful, kindly click like and mark it as an accepted solution.

Thanks!

This is Amelia from PageFly - Landing Page Builder App

I checked and saw that you added one custom CSS in the theme.liquid file that sets the color for the icon to be white. This will affect all the pages.
You can see this image

If you want to set the white color for only the homepage you need to add the liquid code that wraps your custom CSS code here.

{% if template.name == 'index' %}

{% endif %}

Hope that my solution works for you.

Best regards,

Amelia | PageFly

Perfect! Thanks!

1 Like

Thank you for your reply. I’m glad to hear that the solution worked well for you. If you require any more help, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated.

1 Like