Basics

Liquid Comments

Liquid Comment Syntax

Liquid comments use {% comment %} for non-rendered notes in Shopify themes.

Introduction to Liquid Comments

Liquid comments are an essential tool when developing Shopify themes. They allow developers to leave notes, explanations, or reminders in the code without these comments being visible or affecting the rendered page. This is particularly useful for collaborative projects or when revisiting your own code after some time.

Syntax of Liquid Comments

In Liquid, comments are created using the {% comment %} and {% endcomment %} tags. Anything placed between these tags will not be rendered or displayed on the page.

Previous
Loops