Short answer: on Shopify, "schema" means one of two things. Section schema is the JSON inside a {% schema %} Liquid tag in a theme section or block file; it defines the settings, blocks and presets merchants see in the theme editor and has nothing to do with search engines. Schema markup is schema.org structured data, usually JSON-LD in a <script type="application/ld+json"> tag, which describes products and your business to Google. The first is theme customisation; the second is SEO.
Two meanings of "Shopify schema"
| Section schema | Schema markup (structured data) | |
|---|---|---|
| What it is | Settings definition for a theme section, block or app block | Facts about the page in schema.org vocabulary |
| Written as | JSON inside {% schema %} … {% endschema %} | JSON-LD inside a ld+json script tag |
| Who reads it | Shopify's theme editor | Google, Bing and other systems that read structured data |
| Appears in page HTML? | No | Yes |
| Affects | What merchants can customise | Eligibility for rich results such as price and stock |
| Reference | shopify.dev theme docs | schema.org and Google Search Central |
They share a word and both use JSON, and that is all. Changing one never changes the other.
A quick way to tell which one a tutorial or forum answer means: if it mentions settings, blocks, presets, the theme editor or settings_schema.json, it is section schema. If it mentions Google, rich results, JSON-LD, @type, Product or Organization, it is schema markup. Searches such as "Shopify schema settings types", "Shopify schema presets" and "Shopify schema max blocks" are about the theme tag; "Shopify schema markup" and "Shopify structured data" are about SEO.
Section schema: the {% schema %} tag
Shopify theme section schema lives in a single {% schema %} tag: every section file can contain one. Shopify's section schema documentation sets out the rules: only one per section, it cannot sit inside another Liquid tag, the contents must be valid JSON, and the tag outputs nothing and does not render Liquid inside it. A short, valid example:
{% schema %}
{
"name": "Promo banner",
"tag": "section",
"class": "promo-banner",
"max_blocks": 4,
"settings": [
{ "type": "text", "id": "heading", "label": "Heading", "default": "Free UK delivery" },
{ "type": "checkbox", "id": "show_button", "label": "Show button", "default": true }
],
"blocks": [
{
"type": "item",
"name": "Item",
"settings": [
{ "type": "image_picker", "id": "icon", "label": "Icon" }
]
}
],
"presets": [
{ "name": "Promo banner" }
]
}
{% endschema %}
Shopify section schema settings are read in the section's Liquid with {{ section.settings.heading }}, and each block with {{ block.settings.icon }}. Theme-wide settings live in a separate file, config/settings_schema.json, and are read with {{ settings.id }}; merchants' choices are saved in settings_data.json.
Section schema attributes in brief
name: the section's title in the theme editor.tagandclass: the HTML wrapper element and its CSS class.limit: how many times the section can be added to a template.settings: the section's own inputs.blocks: block types merchants can add. Most Shopify schema block entries need atypeand aname, and can have their own settings.{ "type": "@app" }lets the section accept app blocks.max_blocks: a cap on blocks. Shopify's hard limit is 50 per section; you can set a lower number.presets: makes the section available in "Add section", with default settings and blocks.default: defaults for a section rendered statically.locales: section-specific translations.enabled_on/disabled_on: which templates or section groups may use it (not both at once).
Setting IDs must be unique within a section. App developers write the same kind of tag, and a Shopify app block schema is written the same way: app blocks and app embeds in a theme app extension each end with a {% schema %} tag that has a target attribute.
Quick reference: setting input types
Every setting needs type, id and label; default and info are optional. Shopify's input settings documentation lists:
- Basic:
checkbox,number,radio,range,select,text,textarea. - Specialised (common ones):
image_picker,color,color_scheme,font_picker,richtext,inline_richtext,url,video,video_url,html,liquid,link_list,text_alignment. - Resource pickers:
product,product_list,collection,collection_list,article,blog,page,metaobject.
Some types, such as image_picker and the resource pickers, do not accept a default. Check the documentation for each type's extra attributes, such as min, max and step on range.
Schema markup: structured data for search engines
The other meaning is the one that affects how your store appears in Google. Schema markup is code in the page HTML that states facts in the schema.org vocabulary: this is a Product, it costs £45, it is in stock. Google recommends the JSON-LD format and uses it to decide whether a page is eligible for rich results such as price, availability and review stars. It is not a direct ranking factor.
<script type="application/ld+json">
{ "@context": "https://schema.org", "@type": "Organization", "name": "Example Linen Co", "url": "https://example.com/" }
</script>
Where the two meet: a theme section is often where schema markup lives. Dawn's product section, for example, outputs Product markup through Shopify's structured_data filter, and the same file ends with its {% schema %} settings tag. Same file, two unrelated jobs.
If you came for SEO schema: where to go next
- New to it: the complete Shopify schema markup guide and what is JSON-LD.
- Which types you need: Shopify schema types.
- What your theme already does: does Shopify add schema automatically?
- Adding it yourself: how to add JSON-LD to Shopify.
- Checking it: JSON-LD checker and how to audit Shopify schema.
Schema Clinic is a Shopify app for this second meaning only. It audits the structured data on your store, flags broken and duplicated markup with the source of each block, and on Pro ($19.99/month) generates and deploys clean, linked JSON-LD through an app embed. It does not touch section schema. Install from the Shopify App Store.