All things Shopify and commerce
Hi, i want to add a class using collection url and i am using this but both condition is not working.
{% if collection.url == '/collections/all/?sort_by=created-descending' %}
New
{% endif %}
{% if page.url == '/collections/all/?sort_by=created-descending' %}
your stuff here
{% endif %}
Solved! Go to the solution
This is an accepted solution.
Hello,
Try to replace the conditional with this:
This is an accepted solution.
Hello,
Try to replace the conditional with this:
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey 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, 2024