← Back to guides
ReferenceShopify SectionsSchema · Published 2026-11-16 · 3 min read

Shopify Schema Setting Types: Complete Reference With Examples

Every Shopify section schema setting type in one place: basic, specialized and sidebar types, what each returns in Liquid, and when to use it.

Share with Shopify developers — useful guides spread faster in theme dev communities.

What setting types are

Every entry in the settings array of a section's {% schema %} has a type. The type decides which input the merchant sees in the theme editor and what value your Liquid receives in section.settings or block.settings.

{
  "type": "text",
  "id": "heading",
  "label": "Heading",
  "default": "Welcome"
}

Pick the narrowest type that fits. A url setting gives merchants a link picker; a plain text setting gives them a box where they will paste broken links.

Basic types

  • text — single line of text. Output with {{ section.settings.heading | escape }}.
  • textarea — multi-line plain text.
  • checkbox — true or false. Use it to toggle a feature: {% if section.settings.show_badge %}.
  • number — a numeric value. Returns blank when empty, so guard with default or != blank.
  • range — a slider. Needs min, max and step, and should have a default.
  • select — a dropdown with an options array of value and label.
  • radio — like select, but all options are visible. Best for two to four short choices.
{
  "type": "select",
  "id": "layout",
  "label": "Layout",
  "options": [
    { "value": "grid", "label": "Grid" },
    { "value": "list", "label": "List" }
  ],
  "default": "grid"
}

Specialized types

  • richtext — formatted text; output is HTML wrapped in a paragraph. Do not add escape.
  • inline_richtext — bold and italic only, no block elements. Good for headings.
  • image_picker — returns an image object, or blank. Use image_url and image_tag, and guard against blank.
  • video and video_url — a Shopify-hosted video, or a YouTube/Vimeo link.
  • url — internal pages, collections, products or external links.
  • color, color_background, color_scheme, color_scheme_group — colour pickers and theme colour schemes.
  • font_picker — returns a font object you can pass to font_face.
  • collection, collection_list, product, product_list, blog, article, page, link_list — resource pickers that return the object itself.
  • html and liquid — custom code fields. Use sparingly; they are easy to break.
  • text_alignment — left, center or right.
{% if section.settings.image != blank %}
  {{ section.settings.image | image_url: width: 1200 | image_tag: loading: 'lazy' }}
{% endif %}

{% if section.settings.featured_collection != blank %}
  {% for product in section.settings.featured_collection.products limit: 4 %}
    {{ product.title | escape }}
  {% endfor %}
{% endif %}

header and paragraph do not store a value. They add a heading or a short note in the editor sidebar to group settings and explain them. They need content, not id and label.

{ "type": "header", "content": "Button" },
{ "type": "paragraph", "content": "Leave blank to hide the button." }

Rules that prevent schema errors

  1. Every setting id must be unique within the section (and within each block type).
  2. select and radio defaults must match one of the option values.
  3. range defaults must sit inside min and max and line up with step.
  4. Resource pickers such as product or collection cannot have a default.
  5. Never use an empty string as a default for types that do not accept one.

Takeaway

Choose the type that matches the data you need, then guard blank values in Liquid. To skip writing this JSON by hand, use the Shopify schema generator, and read the Shopify schema guide for blocks and presets.

Topic cluster

Shopify Sections

OS 2.0 sections, JSON templates, and section architecture.

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.