Snippets

Shopify Liquid snippets

Production Liquid patterns for sections, products, cart, loops, and schema — used in real Shopify theme development workflows.

Written by Shopify developersProduction-ready sectionsUsed for real Shopify workflowsSchema validationOS 2.0 compatible

About this resource

These snippets complement the interactive Liquid Cheat Sheet. Use them when building sections manually or validating converter output. Each pattern follows OS 2.0 conventions with schema-aware settings and performance-safe filters.

Browse

100 resources

Open converter
Schema

Checkbox Schema Setting

Boolean toggle stored as true or false.

{
  "type": "checkbox",
  "id": "show_rating",
Schema

Schema Presets with Blocks

Pre-populates blocks when a merchant adds the section.

"presets": [
  {
    "name": "FAQ",
Schema

Limit Blocks (max_blocks)

Caps how many blocks merchants can add to a section.

{
  "name": "Logo list",
  "max_blocks": 8,
Schema

Schema Header Divider

Groups settings in the sidebar for easier editing.

{
  "type": "header",
  "content": "Colors"

Discover

Explore Shopify Liquid resources

Start converting HTML