How to change title and meta description of /collections page?

Hi,

I have searched the forum and found this question asked in several different ways, but never found a solution on any of the threads.

I am trying to change the title and meta description on my main collections page (Collections – Pixilated) – without changing anything on the homepage.

Using Shopify 2.0 Dawn Theme

Any ideas?

Thanks,

Nic

Hello @nicolaschina ,

Greetings from the Store Watchers Support Team! Happy to help you today.

Go to Online Store → Actions → Edit code. Then find theme.liquid.

In your theme.liquid file, please paste the code below before the tag.

{% if canonical_url == 'https://your-store-name.myshopify.com/collections' %}

{% endif %}

Note: Please update ‘your-store-name’ in the URL with your actual store name.

Also, note that you need to place the code above the tag. Please check the below screenshot for your reference.

Let me know if need further assistance

Regards,
Store Watchers Support Team

2 Likes

Hi [email removed]Nicolaschina,

You can my screenshots

the code is:

{% comment %} new meta {% endcomment %}
   {% if template contains "collection" %}
      
      
  {% else %}
     
    {% if page_description %}
      
    {% endif %}
  {% endif %}

Hope my solution works perfectly for you!

Best regards,

Victor | PageFly

2 Likes

@StoreWatchers

Thanks for your solution! Just to be clear, I only want this applied to the page Collections – Pixilated – not the homepage or any of the specific collections pages (for instance Photo Booth Backdrops | Custom Photo Backgrounds – Pixilated).

Also, what is the difference between your solution and the one provided by PageFly-Victor?

Thanks again!

Nic

1 Like

@PageFly-Victor

Thanks for your solution! Please see my reply to StoreWatchers in this thread. I am trying to understand the difference between the two solutions so I can decide which best serves my purpose.

I really appreciate your help!

Thanks,

Nic

@StoreWatchers I tried your solution and it worked but caused a new error. Now it looks like there are two titles and two meta descriptions on the page – Collections – Pixilated

Any suggestions how to fix this?

@PageFly-Victor your solution worked for the /collection page, but it also applied that same title and meta desciption to all my collection pages, for instance /collections/backdrops , /collections/props , etc.

Any suggestions?

Hi @nicolaschina ,

Please update it to the below code. It should properly work now.

{% if canonical_url == 'https://your-store-name.myshopify.com/collections' %}
  
  
{% else %}
  
  {% if page_description %}
	
  {% endif %}
{% endif %}

Let me know if need further assistance

Regards,
Store Watchers Support Team

5 Likes

Hi @nicolaschina

I hope you are doing good and welcome to the Shopify Community!
I am Santanu from MS Web Designer (Top Rated Shopify Certified Experts and eCommerce Consultant from Singapore).

To change the title and meta description for a Shopify collections page, you can follow these steps:

  1. Log in to your Shopify admin panel and navigate to the “Products” section.

  2. Click on the “Collections” tab.

  3. Click on the collection that you want to edit.

  4. On the collection page, click on the “Edit website SEO” button located on the right-hand side of the page.

  5. In the “Search engine listing preview” section, you can edit the title and meta description.

  6. Edit the title and meta description to accurately reflect the content of the collection.

  7. Click “Save” to apply the changes.

It’s important to make sure that your title and meta description accurately represent the content of the collection and contain relevant keywords that can help improve your collection’s visibility in search engines.

Regards,

Santanu

This worked perfectly. Thank you!

Now you’ll see that my homepage: pixilated.com and my all collections page: Collections – Pixilated have different titles and descriptions!

Really appreciatre your help @StoreWatchers

this doesnt work for me, the homepage and collections page are still the same

PLEASE HELP? i have tried this and there is no change

I was having an issue with multiple titles showing for all pages after I used the solution.

For reference, I am using the Streamline Theme

So this is what I ended up doing for my solution:

In theme.liquid file

Replaced:

{%- render ‘seo-title’ -%}

With:

{% if canonical_url == ‘https://YOURWEBSITE.com/collections’ %} YOUR COLLECTIONS PAGE TITLE

{% else %}

{%- render ‘seo-title’ -%}

{% endif %}

For description code I have:

{% if page_description %}
{% if template == ‘list-collections’ %}

{% else %}

{% endif %}
{% endif %}

Can this be done without modifying theme code? Where does the title and description of the “/collections” collection list page live in the Shopify Admin? Is it not accessible?

1 Like

Hello, this option is not working for me. I implemented the code but it is not showing

https://www.wonena.com/collections/

Also, note that you need to place the code above the tag.

Check @StoreWatchers’ screenshot on his original response for reference.

Hi I also want adopt the Meta Titel and Meta Description for the /collection page. Is there a recommended solution for this case without any problems? Best regards, Julius.

Worked for me on www.enayara.com. Thanks!

To fix this, I used the following,

{% if canonical_url == ‘https://www.enayara.com/collections/all’ %}

Please elaborate more on this. I don’t see “old meta” in the liquid template. Is that new code that over-rides something else? I was able to change the meta description with the code below - but it doesn’t change the page title. So frustrating!! https://coralstrands.com/collections

{% if canonical_url == ‘https://ed22ba.myshopify.com/collections’ %}

Gemstone Jewelry {% endif %} {{ 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 -%}

{%- if page_description -%}
{%- if request.path == ‘/collections’ -%}

{%- else -%}

{%- endif -%}
{%- endif -%}