DEV Community

SK
SK

Posted on

Shopify display different description by category ID

By specify ID

{% if collection.handle == 'ランキング' %}
<p>ランキング</p>
{% endif %}
Enter fullscreen mode Exit fullscreen mode

By current ID

{% if collection.handle == collection.title %}
<p>ランキング</p>
{% endif %}
Enter fullscreen mode Exit fullscreen mode

description label

{{description}}
Enter fullscreen mode Exit fullscreen mode

Top comments (1)

Collapse
 
cn profile image
SK

First article