Using the collection.description handle

Ruben__Nunez
Shopify Partner
3 0 0

Is it possible to use the handle  {{ collection.description }} in a way that I can specify a particular collection from my site? Say I have a "spoons" collection.  How can I change the snippet so that it specifically references the spoons collection?

Replies 2 (2)
SidouLF
Excursionist
24 5 3

Hey @Ruben__Nunez 

You can try filtering it by name using the collection.title tag

https://shopify.dev/api/liquid/objects/collection#collection-title

Ruben__Nunez
Shopify Partner
3 0 0

So would it be something like (if my collection is "spoons"):

 

{% if collection.title_spoons %}
{{ collection.description }}
{% endif %}

 

?