Liquid, JavaScript, themes, sales channels
Hi,
although I do not use it on my Dawn theme shop, Shopify creates an all collections page automatically and I can't get rid of it (this is a default page coming from Shopify, wasn't created by me). Is there a way to get rid of it? it has negative influence on my SEO.
https://sugarfreeeu.com/collections/all
Thank you in advance
Solved! Go to the solution
This is an accepted solution.
you can put this in theme.liquid file after <title ></title> tag
put this code in main-collection-product-grid.liquid
and you can also remove this form google bot reading
{% if collection.url == '/collections/all' %}
<meta name="robots" content="noindex,nofollow">
{% endif %}
{% if collection.url == '/collections/all' %}
<script type="text/javascript">
window.location = "your home link or where you want it to redirect";
</script>
{% endif %}
@omarhussain thanks a lot for replying ! where should I add it?
received this message:
This is an accepted solution.
you can put this in theme.liquid file after <title ></title> tag
worked like magic! thx a lot!
@omarhussain I see that the en/collection .... pages are still there tho, how can I get rid of them please?
User | RANK |
---|---|
38 | |
28 | |
13 | |
13 | |
9 |
On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...
By Skye Nov 8, 2023The year-end shopping season is just around the corner. Is a flash sale on your radar? Are...
By Jasonh Nov 6, 2023