Change the meta description for collections/all page

Change the meta description for collections/all page

j_adv21
Shopify Partner
14 0 1

Hi,

 

I wanted to change the meta description for the collections/all page, so I added these in the theme.liquid file

 

{% if template == 'list-collections' %}
<meta name="description" content="Discover the best jewelry brands that are perfect for gifting, or for your own collection." />
{% endif %}

 

but when I checked the source code, it isn't there. I am doing something wrong?

Replies 2 (2)

oscprofessional
Shopify Partner
16343 2438 3177

@j_adv21 ,

Try this code..

 

{% if template contains 'list-collections' %}
<meta name="description" content="Discover the best jewelry brands that are perfect for gifting, or for your own collection." />
{% endif %}

or refer this link

https://community.shopify.com/c/ecommerce-marketing/add-seo-to-quot-all-collection-quot-page/td-p/61...

 

 

Hire us | Pass Core Web Vital | B2B Wholesale Experts | Claim Your Free Website Review |
Connect with Us: WhatsApp | Skype: oscprofessionals-87 | Email: pallavi@oscprofessionals.com |
Custom Shopify SolutionsPrivate Apps, Theme Customization & SEO | Digital Marketing |
OSCP Apps: Discount Suite | Wholesale App | Bundle & Upsell | Shipping Discount | and more...
j_adv21
Shopify Partner
14 0 1

Hi,

 

Yes I did try this

 

{% if template == 'list-collections' %}
<meta name="description" content="Discover the best jewelry brands that are perfect for gifting, or for your own collection. " />
{% else %}
{% endif %}

 

and this

 

{% if template contains 'list-collections' %}
<meta name="description" content="Discover the best jewelry brands that are perfect for gifting, or for your own collection. " />
{% else %}
{% endif %}

 

but it didn't help. Also, I noticed that in my Online Store > Preferences, the Homepage meta description isn't the one showing in the collections/all page.