Liquid is an open-source template language developed by Shopify to generate dynamic content in online shops and websites. You write Liquid code in HTML templates, using tags, objects and filters to retrieve and display data from a database. Think of product names, prices, stock status or customer data. Liquid runs server-side, meaning the code is executed before the HTML is sent to the browser. For SME online shops, Liquid is the standard way to customise Shopify themes without touching core functionality.
How Liquid-code works in practice
Liquid uses three types of syntax elements. First, objects, written between double braces such as {{ product.title }}, which retrieve and display data from your database. Second, tags, written between brace percents such as {% if product.available %}, which handle logic and control structures. Third, filters, written with a pipe symbol such as {{ product.price | money }}, which transform or format data. You combine these elements in .liquid files within your theme structure. A typical product page contains dozens of Liquid lines that together provide price display, variant selection, add-to-cart functionality and stock notifications. Shopify's official Liquid documentation describes all available objects and filters.
Why Shopify Liquid developed
Before 2006, online shop platforms often used PHP or other server-side languages directly in templates, which posed security risks when merchants customised code themselves. Shopify wanted to create a secure environment where shop owners could modify templates without access to server-level code. Liquid provides a restricted, controlled syntax that does not allow direct database access or system commands. This allows even non-developers to make modifications safely. Meanwhile, other platforms such as Jekyll and 11ty also use variants of Liquid, but the Shopify implementation remains the most comprehensive. For Dutch online shops, this means you can work with one template language for both your Shopify shop and any content sites running on Jekyll.
What Liquid brings to online shop owners
With Liquid, you customise the presentation of your online shop without touching the underlying Shopify infrastructure. You can personalise product pages based on collection, customer group or stock status. An example: a sports shop displays running shoes differently from cycling shoes by checking for product tags in Liquid and then loading other content blocks. You keep all Shopify updates and security patches because you only change the presentation layer. For SMEs having an online shop created or expanded, Liquid means that developers can quickly add bespoke functionality without building a full bespoke platform. The code remains readable and transferable, which is important if you later switch agencies. In addition, you integrate with API links by combining Liquid with JavaScript for real-time data such as delivery times or dynamic prices.