Skip to content

comment

Text that isn’t rendered.

{% # text %} is a one-tag comment; inside {% liquid %}, lines starting with # are comments.

{% comment %}…{% endcomment %} · {% # note %}
Liquid
Shown{% comment %} Not shown {{ product.title }}{% endcomment %}
Output
Shown
Liquid
Shown{% # not shown %}{%- liquid
# a comment line
echo ' too'
-%}
Output
Shown too

Shopify: Same as Shopify.

Since theme platform 1.0.

Was this page helpful?