Blocks

Dynamic Shopify blocks guide

Master block-based sections—repeatable rows merchants add, remove, and reorder—for FAQs, sliders, tabs, and any scalable Shopify content pattern.

2 min read · Published 2026-06-08

Knowledge Hub

What blocks solve

Section settings work for fixed content—one heading, one CTA, one background image. Blocks solve repeatable content: FAQ item seven, slide four, feature card twelve. Each block is a row merchants manage independently in the theme editor sidebar.

Block architecture in Liquid

Schema defines block types with names and per-block settings. Liquid loops over section.blocks, reads block.settings, and outputs block.shopify_attributes on wrappers for editor integration.

Block loop pattern

{% for block in section.blocks %}
  <div class="row" {{ block.shopify_attributes }}>
    {% case block.type %}
      {% when 'slide' %}
        {{ block.settings.image | image_tag }}
      {% when 'faq_item' %}
        <h3>{{ block.settings.question }}</h3>
    {% endcase %}
  </div>
{% endfor %}

FAQ blocks

FAQ blocks carry question (text) and answer (richtext) settings. Merchants add rows as support policies change. Convert FAQ HTML with /convert-faq-html-to-liquid or Block mode in /converter.

FAQ block schema

{
  "type": "faq_item",
  "name": "FAQ item",
  "settings": [
    { "type": "text", "id": "question", "label": "Question" },
    { "type": "richtext", "id": "answer", "label": "Answer" }
  ]
}

Slider blocks

Each slide is a block with image_picker, heading, body, and url settings. Section-level settings control autoplay and navigation. See /convert-slider-html-to-liquid for conversion patterns.

Tab blocks

Tab panels use blocks with label and richtext content. Merchants rename tabs and update policy copy without redeploying. /convert-tabs-html-to-liquid covers HTML conversion.

Accordion blocks

Accordion rows extend FAQ blocks with title and richtext content—common on product detail pages for materials and sizing. /convert-accordion-html-to-liquid explains the HTML workflow.

Merchant editing capabilities

  • Add block — insert a new row from the sidebar.
  • Remove block — delete without code changes.
  • Reorder — drag blocks to change sequence.
  • Duplicate — copy a configured row as a starting point.
  • Per-block settings — edit only the selected row's fields.

Block schema best practices

  • Name block types descriptively: slide, faq_item, tab_panel.
  • Set max_blocks to prevent runaway row counts.
  • Seed presets with two to four starter blocks.
  • Use case block.type when one section mixes multiple block types.
  • Keep per-block setting counts low for editor clarity.

Generating blocks from HTML

HTMLToLiquid Converter detects repeating DOM structures and exports Block mode output with schema and scoped CSS. Pair with /shopify-schema-guide for refinement and /shopify-liquid-examples for Liquid reference patterns.

Frequently asked questions

When should I use blocks instead of section settings?

Use blocks when merchants need variable row counts or reordering. Use section settings for single-instance content and module-level toggles.

Can blocks have different types in one section?

Yes. Define multiple block types in schema and branch on block.type in Liquid with case/when.

What is block.shopify_attributes?

A required attribute string that connects theme editor block selection to the correct DOM node for highlighting and inline editing.

Start converting HTML

Paste your markup and export production-ready Shopify Liquid sections with schema and blocks.

Trust

Built for serious Shopify development

Production-ready sections, validated schema, and workflows theme engineers trust on client projects.

Production-ready output

Export complete section.liquid files with schema, presets, and scoped CSS ready for theme repos.

Built for Shopify developers

Designed for freelancers, agencies, and in-house teams shipping OS 2.0 sections weekly.

OS 2.0 compatible

Output follows Online Store 2.0 conventions—JSON templates, blocks, and valid schema JSON.

Schema validation

Automated checks catch missing presets, invalid setting ids, and common Liquid issues early.

AI-assisted workflow

Optional AI structure detection with deterministic fallback for reliable section generation.

Theme compatibility

Sections align with Dawn, Prestige, Broadcast, Impulse, and custom JSON-template themes.

Dynamic BlocksKnowledge Hub

Generate Shopify sections

Free AI-powered converter — OS 2.0 compatible output with schema validation.

Start converting HTML