Help Center › Themes & templates
Setting types
Every input type you can use in a section or block schema, and what value it gives you in Liquid.
Every setting has a type, an id (used in Liquid as section.settings.<id> or block.settings.<id>), a label, and optionally a default and info (help text shown under the input).
{ "type": "range", "id": "columns", "label": "Columns", "min": 2, "max": 6, "step": 1, "default": 4, "info": "Desktop only" }Basic inputs#
| Type | Editor input | Value in Liquid | Extra keys | |
|---|---|---|---|---|
text | One-line text | String, use `\ | escape` | placeholder |
textarea | Multi-line text | String | ||
number | Number field | Number | ||
range | Slider | Number | min, max, step, unit | |
checkbox | On/off toggle | true / false | ||
select | Dropdown | The chosen value | options: [{ "value", "label" }] | |
color | Color picker | #rrggbb (or blank) | ||
url | Link field | URL string | ||
video_url | Link field | YouTube / Vimeo URL |
Rich content#
| Type | Editor input | Value in Liquid |
|---|---|---|
richtext | Formatted text (paragraphs, bold, links) | HTML, output without escape |
inline_richtext | Formatted text without paragraphs | HTML |
html | Code box | Raw HTML |
liquid | Code box | Liquid source, render it with {{ section.settings.code }} in a custom-liquid-style section |
Store resources#
These store the handle. Look up the object in Liquid:
| Type | Picker | Use it like this | |
|---|---|---|---|
image_picker | Upload or paste URL | `{{ section.settings.image \ | image_url: width: 1200 }}` |
product | Product dropdown | {% assign p = all_products[section.settings.product] %} | |
collection | Collection dropdown | {% assign c = collections[section.settings.collection] %} then c.products | |
page | Page dropdown | {{ pages[section.settings.page].content }} | |
link_list | Menu dropdown | {% for link in linklists[section.settings.menu].links %} | |
font_picker | Font dropdown | Font family name (theme settings only) |
Layout helpers (no value)#
| Type | Shows |
|---|---|
header | A heading that groups the settings below it: { "type": "header", "content": "Colors" } |
paragraph | A short note: { "type": "paragraph", "content": "Images look best at 1600×900." } |
Always guard optional values:
{% if section.settings.image != blank %}…{% endif %}. A merchant may clear any setting.Didn’t find what you need?Contact support