Shopify Section Schema Examples: 5 Copy-Paste Schemas for Common Sections
Ready-to-use Shopify section schema JSON for a hero banner, FAQ, image with text, featured collection and testimonials, with the Liquid that reads each setting.
Share with Shopify developers — useful guides spread faster in theme dev communities.
How to use these examples
Paste the schema at the bottom of a file in sections/, then use the Liquid snippet above it. Each schema has a presets entry so the section appears in the theme editor's Add section list. For the theory, read the Shopify schema guide.
1. Hero banner
{% if section.settings.image != blank %}
{{ section.settings.image | image_url: width: 1600 | image_tag: loading: 'eager' }}
{% endif %}
<h1>{{ section.settings.heading | escape }}</h1>
{% if section.settings.button_label != blank %}
<a href="{{ section.settings.button_link }}">{{ section.settings.button_label | escape }}</a>
{% endif %}
{% schema %}
{
"name": "Hero banner",
"settings": [
{ "type": "image_picker", "id": "image", "label": "Background image" },
{ "type": "text", "id": "heading", "label": "Heading", "default": "New season, new look" },
{ "type": "text", "id": "button_label", "label": "Button label", "default": "Shop now" },
{ "type": "url", "id": "button_link", "label": "Button link" }
],
"presets": [{ "name": "Hero banner" }]
}
{% endschema %}
2. FAQ with blocks
{% for block in section.blocks %}
<details {{ block.shopify_attributes }}>
<summary>{{ block.settings.question | escape }}</summary>
{{ block.settings.answer }}
</details>
{% endfor %}
{% schema %}
{
"name": "FAQ",
"settings": [{ "type": "text", "id": "title", "label": "Title", "default": "Questions" }],
"blocks": [
{
"type": "faq_item",
"name": "Question",
"settings": [
{ "type": "text", "id": "question", "label": "Question", "default": "How long is delivery?" },
{ "type": "richtext", "id": "answer", "label": "Answer", "default": "<p>2 to 4 working days.</p>" }
]
}
],
"presets": [{ "name": "FAQ", "blocks": [{ "type": "faq_item" }, { "type": "faq_item" }] }]
}
{% endschema %}
3. Image with text (layout select)
<div class="iwt iwt--{{ section.settings.layout }}">
{{ section.settings.image | image_url: width: 900 | image_tag: loading: 'lazy' }}
<div>{{ section.settings.text }}</div>
</div>
{% schema %}
{
"name": "Image with text",
"settings": [
{ "type": "image_picker", "id": "image", "label": "Image" },
{ "type": "richtext", "id": "text", "label": "Text" },
{
"type": "select", "id": "layout", "label": "Image position", "default": "left",
"options": [{ "value": "left", "label": "Left" }, { "value": "right", "label": "Right" }]
}
],
"presets": [{ "name": "Image with text" }]
}
{% endschema %}
4. Featured collection
{% assign collection = section.settings.collection %}
{% if collection != blank %}
{% for product in collection.products limit: section.settings.products_to_show %}
<a href="{{ product.url }}">{{ product.title | escape }} - {{ product.price | money }}</a>
{% endfor %}
{% endif %}
{% schema %}
{
"name": "Featured collection",
"settings": [
{ "type": "collection", "id": "collection", "label": "Collection" },
{ "type": "range", "id": "products_to_show", "label": "Products to show", "min": 2, "max": 12, "step": 1, "default": 4 }
],
"presets": [{ "name": "Featured collection" }]
}
{% endschema %}
5. Testimonials with blocks
{% for block in section.blocks %}
<blockquote {{ block.shopify_attributes }}>
<p>{{ block.settings.quote | escape }}</p>
<cite>{{ block.settings.author | escape }}</cite>
</blockquote>
{% endfor %}
{% schema %}
{
"name": "Testimonials",
"max_blocks": 6,
"blocks": [
{
"type": "testimonial",
"name": "Testimonial",
"settings": [
{ "type": "textarea", "id": "quote", "label": "Quote" },
{ "type": "text", "id": "author", "label": "Author" }
]
}
],
"presets": [{ "name": "Testimonials", "blocks": [{ "type": "testimonial" }] }]
}
{% endschema %}
Takeaway
Start from the closest example and rename the ids. Learn every setting type in Shopify Schema Setting Types, and fix errors with Fix Shopify Schema Errors.
Try it with our free tools
Paste your HTML into the HTML to Liquid converter to generate a section with schema, or pick a layout from Ready Sections. Questions? Use the contact form.
Topic cluster
Schema
Section schema, settings, blocks, and theme editor integration.
Convert your HTML to Shopify Liquid
Paste a module, generate Liquid + schema, then copy the result into your theme. Free to try—no signup required for a sample conversion.
Share
Share this guide
Found this guide useful? Share it with other Shopify developers on LinkedIn, X, or Reddit.