How to edit the meta of collections page?

ajuanoba8
New Member
1 0 0

Hi,

 

I was analyzing my store  with a SEO tool and it appeared a problem.

 

Same metadescription on the home page and the collections page

 

Does anyone here know how to edit the one on a collections page as mine of a Brooklin theme. I guess it will probably require some CSS.

 

Thank you beforehand

0 Likes
Alex_Lam
Shopify Partner
87 29 23

Shopify has this covered!

 

1. Head over to Product > Collections.

2. Select the collection you want to edit the description of.
3. Scroll to the bottom. Click on Edit website SEO in the Search engine listing preview box.

4. Write a new description for that collection and save.

 

Is your store fast enough? Compare your store's speed against hundreds of others for free with our benchmarker - https://www.rvere.com/
0 Likes
VladBA
New Member
1 0 2

Hi Alex,

 

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?

Many thanks,

Vladimir

Mitchellsmith
Tourist
3 0 0

I'm also looking for a solution to this.

 

Support?

0 Likes
_Peter_
New Member
1 0 1

Hi everyone! I'm also having the same issue, is there any way to update the root /collection meta ?

WillMaxwell1
New Member
1 0 0

Same Issue here!

Thanks for your efforts

0 Likes
zippyslothseo
Tourist
3 0 2

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 %}
     <meta name="description" content="{{ page_description | escape }}">
  {% endif %}

 

To this:

  {% if page_description %}
      {% if template == 'collection-list' %}
          <meta name="description" content="YOUR META DESCRIPTION HERE.">
      {% else %}
          <meta name="description" content="{{ page_description | escape }}">
      {% endif %}
  {% endif %}
 
Allen
Mitchellsmith
Tourist
3 0 0

Thank you so much Allen!!

I was able to implement this change and I think it's working.

Happy Holidays!

0 Likes
Mitchellsmith
Tourist
3 0 0

I had to type in 'list-collections' to properly target my collections list. (www.voltlin.com/collections)

 

{% if template == 'list-collections' %}

0 Likes
zippyslothseo
Tourist
3 0 2

 So glad I could help. Happy holidays!

 

If you wouldn’t mind, could you mark my answer as the solution to help others find it easier?

 

Cheers, Allen @ zippyslothseo.com