Sections are Liquid files that allow you to create reusable modules of content that can be customized by merchants. They can also include [blocks](/docs/storefronts/themes/architecture/sections/section-schema#blocks) which allow merchants to add, remove, and reorder content within a section.
For example, you can create an **Image with text** section that displays an image and text side-by-side with options for merchants to choose the image, set the text, and select the display order.
Sections can be dynamically added to pages using [JSON templates](/docs/storefronts/themes/architecture/templates/json-templates) or [section groups](/docs/storefronts/themes/architecture/section-groups), giving merchants flexibility to easily customize page layouts. Sections that are included in JSON templates or section groups can support [app blocks](/docs/storefronts/themes/architecture/blocks/app-blocks), which give merchants the option to include app content within a section without having to edit theme code. JSON templates and section groups can render up to 25 sections, and each section can have up to 50 [blocks](/docs/storefronts/themes/architecture/sections/section-schema#blocks).
Sections can also be [included statically](#statically-render-a-section), which can provide merchants with in-context customization options for static content.
By default, sections are available for any template or section group. You can limit which templates and section groups have access in the [section schema](/docs/storefronts/themes/architecture/sections/section-schema#content).
The following diagram shows the main theme architecture components with sections highlighted in blue and blocks highlighted in red:
Type | Description | Required |
---|---|---|
Main content |
Any HTML or Liquid content you might want to include in the section. Sections have the same access to global objects, tags, and filters as other Liquid theme files, as well as the following section-specific objects:
Aside from global objects, variables created outside of sections aren't accessible within sections. The section and block objects, as well as variables created within sections, aren't available outside of their respective section. The only exception is when you reference section and block objects within a snippet that's rendered inside the section you're referencing. |
No |
Assets |
Sections can bundle their own JavaScript and stylesheet assets with the following section-specific Liquid tags: To learn more, refer to Section assets. |
No |
Schema |
Sections support the
To learn more, refer to Section schema. |
Yes |