shopify-liquid-syntax

Render dynamic Shopify theme content using Liquid templates.

77|9|Updated Oct 10, 2025
One-click install
npx skills add https://github.com/henkisdabro/claudecode-marketplace --skill shopify-liquid-syntax
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: shopify-liquid-syntax
Source: https://github.com/henkisdabro/claudecode-marketplace/tree/main/shopify-developer/skills/shopify-liquid/references/syntax.md
Command: npx skills add https://github.com/henkisdabro/claudecode-marketplace --skill shopify-liquid-syntax

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill offers a complete syntax reference for Shopify Liquid: tags, filters, loops, and conditions to build dynamic themes.

Core Features & Use Cases

  • Control Flow: if/unless/case/for loops with realistic examples.
  • Filters & Objects: Money formatting, string manipulation, array handling.
  • Theme Rendering: Build dynamic product and collection templates with proper data access.

Quick Start

Implement a product card using Liquid to display price with currency formatting and conditional inventory messaging.

Frequently Asked Questions about shopify-liquid-syntax

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I render dynamic content in Shopify theme templates using Liquid?

Liquid is Shopify's templating language that renders dynamic content in .liquid files. Use output tags `{{ }}` to display variables, control flow tags for conditionals and loops, and filters to format data like prices and strings. Apply it to product, collection, and cart templates to build responsive theme content.

What Liquid filters and objects do I need for product pages?

Shopify Liquid provides built-in objects (product, collection, cart, customer) and filters for formatting. Use money filters for currency display, string filters for text manipulation, and array filters for collections. Access product properties directly via the product object to display prices, inventory, and variant data.

How do I set up conditionals and loops in Liquid templates?

Liquid control flow uses if/unless/case tags for conditionals and for loops for iteration. Wrap logic in `{% if condition %} ... {% endif %}` blocks and loop through arrays with `{% for item in collection %} ... {% endfor %}`. Combine with filters and output tags to build dynamic product cards and collection listings.

Can I use Liquid in Shopify sections and snippets?

Yes, Liquid syntax applies across all Shopify theme components: templates, sections, and snippets. Sections and snippets reuse the same tags, filters, and objects as full templates, allowing you to modularize theme logic and render dynamic content blocks consistently throughout your store.

What are common Liquid whitespace and syntax issues in theme debugging?

Liquid whitespace handling can create unexpected output or blank lines in rendered HTML. Use whitespace control tags `{{- -}}` and `{%- -%}` to strip spaces. Debug by inspecting raw template output and verifying filter chaining syntax and object property access match Shopify's documented API.

What's the best way to format prices and handle currency in Liquid?

Liquid's money filter formats prices with proper currency symbols and decimals: `{{ product.price | money }}`. Combine with conditional logic to display sale prices, apply discounts, or show inventory-based messaging. Use this pattern consistently across product cards, carts, and checkout layouts for uniform formatting.