I want to add more content to our collection descriptions but don’t want themn to be too long on the frontend. Tried to add code below and it’s fudged it:
Preview Link:
https://czc7uit6obrczel4-40186413217.shopifypreview.com
Code Added:
collection-template.liquid
{% if collection.description.size > 50 %}
{{ collection.description | truncate: 30, ". . . " }}Show More >
{{ collection.description }}
< Show Less
{% else %}
{{ collection.description }}
{% endif %}
collection.liquid

