settings_data.json file contains the setting values for a theme. For example, you can use the following theme setting to allow a merchant to choose a color for the page background:
This adds an entry for
Anytime you change the value of
color_page_bg in the theme editor,
settings_data.json is updated with the new value.
settings_data.json file has two parent objects:
current- Contains all of the setting values that are currently saved in the theme editor.
presets- Contains an object for each theme style. Each object is in the same format as
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, settings for specific input types aren't changed. These inputs are determined by the kind of value they hold, which is broken down into two categories:
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:
Content values are values from settings that are related to theme content. For example, slideshow images or featured products on the homepage.
The following input types have content values, and will not be overwritten when switching theme styles: