First of all, thank you for your answer. Unfortunately, following these steps only help to change the meta description of collections generated manually.
Shopify automatically generates a page â/collectionsâ which isnât accessible anywhere on the dashboard. This auto-generated page takes the meta-description of the homepage, hence generating an SEO error for pages sharing the same meta description.
Could you please share a solution on how to change the meta description of this autogenerated page?
This can be achieved by editing the theme.liquid file. I recommend creating a backup first.
If your code looks different youâll need to adapt the code accordingly. You may need to change the template name as well if your theme is using something else. Leave off the .liquid part.
Change this:
{% if page_description %}
{% endif %}
To this:
{% if page_description %}
{% if template == âcollection-listâ %}
But this will change the meta data to all collections pages and only the â/allâ page is missing the title and meta description⌠Its incredible that Shopify doesnât allow to easily edit that specific page when is one of the most important ones!!!
{%- if page_description -%}
{% if template == âcollection-listâ %}
{% else %}
{%- endif -%}
{%- endif -%}
This one is right but with small detail depending on the theme the âlist-collectionsâ may be called differently that is the reason why its not working for most of the people.
Thats why go to your code and check for list collection in my case it is named as list-collections
There can be other variations too.
So for me it worked as suggested
{%- if page_description -%}
{% if template == âlist-collectionsâ %}
{% else %}
{%- endif -%}
{%- endif -%}
It may seem to some as a duplicate answer just wanted to clarify