Commenting out in .liquid?

Highlighted
New Member
5 0 0

Quick question!

In CSS and PHP I usually comment out areas so I can keep track of changes.

Is there a default way of commenting out in the .liquid theme files?

EG

/* This wont show up on my shopify site */

Thanks

0 Likes
Highlighted
Shopify Staff
Shopify Staff
5704 1 318

Hi Nick.

In Liquid, you comment out like this:

 

{% comment %}
This won't show up when you do View Source in browser.
{% endcomment %}

 

2 Likes
Highlighted
New Member
5 0 0

Thanks very much!

0 Likes
Highlighted
New Member
6 0 0

Good

0 Likes