Shopify themes, liquid, logos, and UX
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
Solved! Go to the solution
This is an accepted solution.
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 </body> tag
{% if template.name != "index" %}
<style>
#cart-icon-bubble svg path {
fill: black !important;
}
</style>
{% endif %}
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
This is an accepted solution.
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 </body> tag
{% if template.name != "index" %}
<style>
#cart-icon-bubble svg path {
fill: black !important;
}
</style>
{% endif %}
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
Perfect! Thanks!
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.
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 </head>
{% if template.name != "index" %}
<style>
#cart-icon-bubble svg path {
fill: #000000 !important;
}
</style>
{% 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' %}
<style>
#cart-icon-bubble svg path {
fill: #fff !important;
}
</style>
{% endif %}
Hope that my solution works for you.
Best regards,
Amelia | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
➜ Optimize your Shopify store with PageFly Page Builder (Free plan available)
➜ Weekly updated Shopify tutorials on YouTube
All features are available from Free plan. Live Chat Support is available 24/7.
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024