support@schemaclinic.com Free JSON-LD checker Free schema generator Shopify App Store
Schema guide

Shopify section schema vs schema markup: two different things

Search for "Shopify schema" and you get two unrelated topics. Theme developers mean the {% schema %} tag that defines section settings. SEO people mean schema.org structured data. This page explains both, briefly and correctly, and points you to the right place.

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 schemaSchema markup (structured data)
What it isSettings definition for a theme section, block or app blockFacts about the page in schema.org vocabulary
Written asJSON inside {% schema %} … {% endschema %}JSON-LD inside a ld+json script tag
Who reads itShopify's theme editorGoogle, Bing and other systems that read structured data
Appears in page HTML?NoYes
AffectsWhat merchants can customiseEligibility for rich results such as price and stock
Referenceshopify.dev theme docsschema.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.
  • tag and class: 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 a type and a name, 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

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.

Questions people ask

Is Shopify section schema the same as schema markup?
No. Section schema defines theme editor settings and never appears in the page HTML. Schema markup is schema.org structured data for search engines.
Does the {% schema %} tag affect SEO?
Not directly. It only controls the settings merchants can change. Those settings may change visible content, but the tag itself outputs nothing.
What is the maximum number of blocks in a Shopify section?
Shopify's hard limit is 50 blocks per section. You can set a lower cap with max_blocks; static blocks do not count towards it.
Where is settings_schema.json in a Shopify theme?
In the theme's config folder. It defines the Theme settings area of the theme editor, and merchants' choices are saved in settings_data.json beside it.
Can I use Liquid inside the {% schema %} tag?
No. Shopify does not render Liquid inside the schema tag, and the contents must be valid JSON.

See what Google sees on your store

Run an audit in minutes. Every schema block, every error and duplicate, with its source.

Install Schema Clinic