The section schema allows you to define section attributes and settings for theme customization.
{% schema %}
tag allows you to define section attributes and settings to enable customization options in the theme editor. It defines how sections appear, behave, and what configuration options are available to users.
Each section can have only a single {% schema %}
tag, which must contain valid JSON using the attributes listed below. The tag can be placed anywhere within the section file, but cannot be nested inside another tag.
Note:
The{% schema %}
tag is a Liquid tag. However, it doesn’t output its contents or render any Liquid included inside it.
t:
prefix plus a valid key from schema translation files. More details can be found in Locales.icon
- Icon to be associated with this section type in the theme editorblocks_hidden_if
- Object representing a condition that hides section blocks inside the theme editor if satisfied
setting
- Which setting of this section to checkvalue
- Expected value for the block section to be hidden