Created
June 17, 2016 15:11
-
-
Save ECkurt/d6da6a6936817e3b3f8b7e40dd0d4f21 to your computer and use it in GitHub Desktop.
Shopify Collection Tags Duplicate Content Fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% if template contains 'collection' and current_tags %} | |
<meta name="robots" content="noindex" /> | |
<link rel="canonical" href="{{ collection.url }}" /> | |
{% else %} | |
<link rel="canonical" href="{{ canonical_url }}" /> | |
{% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It works perfect! Thank You!
If I want to solve the ''collection pagination duplication'' on Shopify, what code I have to use and where I should inject to Shopify?
Thanks in advance