Hi,
The title and meta description of collections page (www.floweractually.com/collections) of shopify is the same as my home page’s. I think it’s a default setting. It will be highly appreciated if I could get guidance on how to change it as duplicate title and meta description is not the best practice for SEO.
1 Like
I didn’t have time to test this. Within the theme.liquid you should be able to do something like:
{% if template contains ‘collections’ %}
{% else %}
{% endif %}
I used the following code and i could changed the title and meta description for collections but all the other collections’ titles and collections changed to the same as the collections as well
{% if request .path == '/collections'%}
Discover Luxury Florist | Flower Actually Collections
{% else %}
{{ page_title }}
{%- if current_tags %} – tagged “{{ current_tags | join: ', ’ }}”{% endif -%}
{%- if current_page != 1 %} – Page {{ current_page }}{% endif -%}
{%- unless page_title contains shop.name %} – {{ shop.name }}{% endunless -%}
{% endif %}
{% if request .path == ‘/collections’%}
{% else page_description %}
{% endif %}