settings_presets.json
The settings_pesets.json
file contains an object for each theme style. Each object is in the same format as current
.
Location
The settings_presets.json
file is located in the config
directory of the theme:
└── theme
...
├── config
| └── settings_schema.json
| ├── settings_data.json
| └── settings_presets.json
└── locales
Schema
The settings_presets.json
file has only one parent object:
presets
- Contains an object for each theme style. Each object is in the same format ascurrent
.
For example:
{
"presets": {
"preset-name": {
"color_page_bg": "#000000",
...
}
}
}
Usage
When working with the settings_presets.json
file, you should familiarize yourself with theme styles.
Theme style
A theme style is a collection of theme setting defaults that enable merchants to easily change the general look and feel of the theme through the theme editor when getting started.
Selecting a theme style updates the current
object to use the associated theme style values. However, only values from presentational settings are updated.
Presentational settings
Presentational values are values from settings that are related to a visual aspect of the theme. For example, text color and font, or choosing whether or not to show a specific element.
The following input types have presentational values, and will have their values overwritten when switching theme styles:
Updated over 2 years ago