Theme editor
You can use the settings_schema.json file to configure the theme settings that merchants can access using the theme editor. A merchant accesses the editor by clicking Customize from the Themes page of their ShopBase admin
File format
The settings_schema.json file contains the definitions for your theme settings, grouped into sections according to the setting type. The grouping of the settings in settings_schema.json is reflected in the theme editor.
There are two categories of theme setting:
Section settings: These control the settings that can be configured by merchants.
Sidebar settings: These are not configurable by the merchant. They control informational elements (headers and paragraphs), which you can use to add detail and clarity to the theme editor sidebar.
Current supported setting types:
Input (text, number, url, textarea)
{
"id": "",
"type": "input",
"default": "",
"placeholder": "",
"maxLength": 100
}Example:
{
"id": "input",
"type": "input",
"placeholder": "Placeholder"
}Image picker
Example:
Radio
Example:
Sections
Supported Types: image_picker, text, number, url, textarea, select, checkbox, radio, slider, help_text, label, heading, text_editor, collection, product, page, link, menu, video
Example:
Sidebar settings
Supported types: image_picker, text, number, url, textarea, select, color, checkbox, radio, slider, help_text, label, heading
Example:
Last updated
Was this helpful?