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:
Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025Expand into selling wholesale with Shopify Academy’s learning path, B2B on Shopify: Lau...
By Shopify Jan 28, 2025