Creating Storefront Settings
Last updated
Last updated
The settings folder is used to define and register all your Storefront Settings.
Because the Storefront settings are globally accessible, they are ideal for architecting content features and toggle-able options in site-wide components such as:
Header and footer menus
Promo bars
Modals
Sidebars
Shared size guides
Cart settings
Account settings
etc.
To register new setting(s) in the Customizer you must include your setting(s) within the default export at /settings/index.js
The default export must be an array of site settings. These settings will use the same fields that you use in sections. You can find a list of our supported fields .
An index.js
file exporting an array of settings is required on /settings
Learn more about .
Retrieving Storefront Settings using the hook.