Collections Page - adding/editing meta description for seo

Collections Page - adding/editing meta description for seo

Carpinus
New Member
25 0 0

Good day all!

 

How can I access to edit/add meta description for Shopify Collections (all) page? I searched all over the place and  yes, I can access the template, but how do I edit the meta description and title?

Collections – Nectar Flowers Ottawa

https://nectarflowersottawa.ca/collections/

 

 

Thank you so much!

Replies 4 (4)

theycallmemakka
Shopify Partner
1806 437 471

Hi @Carpinus ,

 

This will require updating theme.liquid file.  Can you provide me a copy of theme.liquid ?? And also let me know that the new meta title/description?

 

I was able to add custom meta title/description on the mentioned page https://mangit.myshopify.com/collections/ by editing the template file.

Support Me: Buy me a Coffee


For quick response - Message Me


Ping me at: theycallmemakka@gmail.com

Carpinus
New Member
25 0 0

Thank you so much!!!

 

Could you please share the code for the template file - would love to try it!

magdalena
Tourist
4 0 1

Did you managed to fix that issue?

theycallmemakka
Shopify Partner
1806 437 471

Hi @magdalena @Carpinus ,

 

This depends on the theme. However you can fllow below steps to get this done. In the theme.liquid file there should be code for meta title and description. 

 

Please replace 

 <title>
      {{ page_title }}
      {%- if current_tags %} &ndash; tagged "{{ current_tags | join: ', ' }}"{% endif -%}
      {%- if current_page != 1 %} &ndash; Page {{ current_page }}{% endif -%}
      {%- unless page_title contains shop.name %} &ndash; {{ shop.name }}{% endunless -%}
    </title>

    {% if page_description %}
      <meta name="description" content="{{ page_description | escape }}">
    {% endif %}

 

With

 

{% if request.page_type == 'list-collections' %}
        <title>New Title Here</title>
        <meta name="description" content="New Description Here">      
    {% else %}
      <title>
        {{ page_title }}
        {%- if current_tags %} &ndash; tagged "{{ current_tags | join: ', ' }}"{% endif -%}
        {%- if current_page != 1 %} &ndash; Page {{ current_page }}{% endif -%}
        {%- unless page_title contains shop.name %} &ndash; {{ shop.name }}{% endunless -%}
      </title>
  
      {% if page_description %}
        <meta name="description" content="{{ page_description | escape }}">
      {% endif %}
    {% endif %}

Support Me: Buy me a Coffee


For quick response - Message Me


Ping me at: theycallmemakka@gmail.com