Using the collection.description handle

Ruben__Nunez
Shopify Partner
4 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
Shopify Partner
62 7 8

Hey @Ruben__Nunez 

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

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

- Was my reply helpful? Click Like to let me know! and Mark it as an Accepted Solution

- Feel free to contact me if you need any help and and have any issue.
Ruben__Nunez
Shopify Partner
4 0 0

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

 

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

 

?