Shopify themes, liquid, logos, and UX
Hi everyone,
I would like my logo in the top left corner of my website to change color every time I refresh the page, but only on the collection page.
Could anyone guide me on how to achieve this? I’d really appreciate your help!
Thanks so much in advance! 😊
website : https://www.alfjewelry.com/
password: andrew03
Hi @thomas93410 ,
Given that your logo is already in black, it is not feasible to alter the color of the individual strokes within it.
In case you want to change the background, you can use this code here:
% if template.name == "collection" %}
{% style %}
a.logo-link.w-inline-block {
background: green;
}
{% endstyle %}
{% endif %}
Here is the result: https://prnt.sc/AFKrXoVjZZSJ
Please add this code into your theme.liquid, before the <head> tag.
Please let me know if it works!
Best,
Daisy
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024