Hello everyone,
I am currently using Dawn Theme 4.0
is there a way to hide these pages??
-
…/collection
-
…/collection/all
maybe a redirect or something?
Hello everyone,
I am currently using Dawn Theme 4.0
is there a way to hide these pages??
…/collection
…/collection/all
maybe a redirect or something?
Hello @Anonymous ,
Happy to help! I have found one article which might help you, please go through it.
https://www.huratips.com/tech-tips/how-to-hide-collections-all-page-in-shopify.html
How was my answer?
@AnkitRawat hello! Thanks for the answer, however, it doesn’t seem to work as there is no collection.liquid in 2.0 themes.
I actually managed to do it.
I added this script in the of theme.liquid
{% if collection.handle == 'all' or template contains 'collection' and collection.url == '/collections/ %}
{% endif %}
it redirects to the homepage whenever the user goes to one of those two links
Thanks for sharing this. Worked perfectly!
Thank you so much for sharing this! I have been wanting to fix this for a long time and finally found your solution!
I’ve been trying to work with out for an age. So grateful for your comment. Thanks, Matt.
This code can be of help for those like me who want to eliminate the collections/all but keep the /collections.
{% if collection.handle == 'all' %}
{% endif %}
(inspired by Matt’s code)
off sitewide
July sale — 45% off at checkout, applied automatically. Valid for 60 minutes. One per customer.
Offer ends in