Commenting out in .liquid?

NickB
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
Caroline_Schnap
Shopify Staff
Shopify Staff
5711 1 341

Hi Nick.

In Liquid, you comment out like this:

 

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

 

NickB
New Member
5 0 0

Thanks very much!

0 Likes
Skaisin
New Member
6 0 0

Good

0 Likes