Shopify themes, liquid, logos, and UX
Hey,
i want my icon to change color when i switch from my landing page to the other sites. currently its white.
is there a way where it stays white when im on the landing page, but changes color to black when im on my other pages?
url: sixdreamz.com
Solved! Go to the solution
This is an accepted solution.
Hi @sixdreamz
Check this one.
From your Shopify admin dashboard, click on "Online Store" and then "Themes"
Find the theme that you want to edit and click on "Actions" and then "Edit code".
In the "theme. Liquid" file. Find the </body> tag and paste the code below before the tag.
{% unless template.name == 'index' %}
<style>
a#cart-icon-bubble path {
fill: black !important;
}
</style>
{% endunless %}
And Save.
This is an accepted solution.
Hi @sixdreamz
Check this one.
From your Shopify admin dashboard, click on "Online Store" and then "Themes"
Find the theme that you want to edit and click on "Actions" and then "Edit code".
In the "theme. Liquid" file. Find the </body> tag and paste the code below before the tag.
{% unless template.name == 'index' %}
<style>
a#cart-icon-bubble path {
fill: black !important;
}
</style>
{% endunless %}
And Save.
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025