Comment out code in Liquid Template Language

Published on Dec 19, 2016 & tagged in Liquid

The Liquid is an open-source template language created by Shopify and written in Ruby. It is used in too many projects like Jekyll, Shopify themes etc.

I’m using Liquid for some personal projects and often I have to comment out code in my files.

To comment out code in Liquid, we have to use a special tag.

{% comment %}
this content is comment out
{% endcomment %}

Do you need any help on Liquid?

I'm happy to help you. Just fill the form on contact page & I will get back to you within few hours.

Recent Posts

  1. The add_image_size() function - WordPress best practices
  2. Remove page title using filter - WordPress
  3. Remove Plugin Stylesheets and Scripts - WordPress
  4. Get blog page URL - WordPress
  5. Customized Product Query using WP_Query - WooCommerce