Your safety is important to us. If you notice any suspicious emails that appear to come from Shopify, please forward them to safety@shopify.com. Visit the Help Center page on phishing for more information.

Liquid tags

Liquid tags are the programming logic that tells templates what to do. Tags are wrapped in: {% %} characters.

Certain tags, such as for and cycle can take on parameters. Details for each parameter can be found in their respective sections.

In this section:

  • Control flow tags Control flow tags create conditions that decide whether blocks of Liquid code get executed.

  • Iteration tags Iteration tags run blocks of code repeatedly.

  • Theme tags Theme tags output HTML markup specific to your template, define theme layouts and snippets, and break up returned arrays into more than one page.

  • Variable tags Use variable tags to create new Liquid variables.

Want to discuss this page?

Visit the Shopify Community