

The sections that are available to be added to a template in the theme editor might be limited by the templates attribute of the section schema. You can add sections to a template in code, or through the theme editor.

JSON templates can render up to 25 sections, and each section can have up to 50 blocks. You can't share section data across JSON theme templates, so each section must have an ID that's unique within the template. These can be either theme sections or app sections. The sections attribute of JSON templates holds the data for the sections to be rendered by the template.

Section data Anchor link to section titled "Section data" Section files without presets should be included in the JSON file manually, and can't be removed using the theme editor. Section files must define presets in their schema to support being added to JSON templates using the theme editor. The IDs must exist in the sections object. JSON templates can render up to 25 sections, and each section can have up to 50 blocks.Īn array of section IDs, listed in the order that they should be rendered. The format of the section data is the same as section data in settings_data.json. This attribute needs to contain at least one section.ĭuplicate IDs within the template are not allowed. To learn more, refer to The wrapper property.Īn object that uses section IDs as keys, and section data as values. The HTML wrapper element for the template's sections. Templates without a layout can't be customized in the theme editor. Use the value false to render the template without a layout. For example, specify "full-width" to render layout/full-width.liquid. The filename of the layout to use when rendering the template. The root should be an object with the following attributes: Attribute Schema Anchor link to section titled "Schema" After the limit is reached, you can't create new JSON templates. For example, when you're building a list-collections JSON template, it should reference a section that uses the collections object.Ī theme can contain up to 1,000 JSON templates. When you build a JSON template, you should also build a section that contains the core functionality for the template.
