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
A user wants to change their icon color based on the page being viewed:
Current behavior:
Desired behavior:
Proposed solution:
Another user provides CSS customization steps:
</body> tag{% unless template.name == 'index' %} to exclude the landing pageThe solution uses Shopify’s Liquid templating to target all pages except the index/landing page.
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
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 tag and paste the code below before the tag.
{% unless template.name == 'index' %}
{% endunless %}
And Save.