Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
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?
@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
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.
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025