All things Shopify and commerce
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.
I didn't have time to test this. Within the theme.liquid you should be able to do something like:
{% if template contains 'collections' %}
<meta name="description" content="meta description for collections page">
{% else %}
<meta name="description" content="{{ page_description | escape }}">
{% 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
<title>
{% 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 %}
</title>
{% if request .path == '/collections'%}
<meta name="description" content="Explore exquisite blooms and bespoke arrangements that elevate every moment. Explore our collections today.">
{% else page_description %}
<meta name="description" content="{{ page_description | escape }}">
{% endif %}
User | RANK |
---|---|
40 | |
37 | |
24 | |
22 | |
15 |
Transform this holiday season into a shopping spree. Plus, learn how to effortlessly open ...
By Jasonh Dec 8, 2023Make the shift from discounts to donations, and witness your business not only thrive fina...
By Holly Dec 4, 2023On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023