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 withdefaultor!= blank.range— a slider. Needsmin,maxandstep, and should have adefault.select— a dropdown with anoptionsarray ofvalueandlabel.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 addescape.inline_richtext— bold and italic only, no block elements. Good for headings.image_picker— returns an image object, or blank. Useimage_urlandimage_tag, and guard against blank.videoandvideo_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 tofont_face.collection,collection_list,product,product_list,blog,article,page,link_list— resource pickers that return the object itself.htmlandliquid— 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 %}
Sidebar-only types
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
- Every setting
idmust be unique within the section (and within each block type). selectandradiodefaults must match one of the option values.rangedefaults must sit insideminandmaxand line up withstep.- Resource pickers such as
productorcollectioncannot have a default. - 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.