We are here and ready to help.

Template Basics - Liquid

Introduction

Liquid is an open-source, Ruby-based template language created by Shopify. It is the backbone of Shopify themes and is used to load dynamic content on storefronts.

Liquid uses a combination of tagsobjects, and filters to load dynamic content. 

Tags

Objects

Filters

Tags

Tags make up the programming logic that tells templates what to do.

{% if user.name == 'elvis' %}
 Hey Elvis
{% endif %}

 

Objects

Objects contain attributes that are used to display dynamic content on the page.

{{ product.title }} <!-- Output: Awesome T-Shirt-->

 

Filters

Filters are used to modify the output of strings, numbers, variables, and objects.

{{ 'sales' | append: '.jpg' }} <!-- Output: sales.jpg -->
Facebook Share Tweet

Was this article helpfu?

Yes No

Thank you for voting

×
Select company

You are related to multiple companies. Please select the company you wish to login as.