Skip to main content
You can access detailed information about the current section being rendered, including its settings and blocks, using the section object.
To learn more about sections, and using them in your theme, see Sections.

Syntax

Properties

string
The unique identifier of the section. This is automatically generated in JSON template when theyโ€™re added by theme editor.
string
The type of the section.
object
The blocks of the section, accessible by their IDs.
string[]
The IDs of the blocks of the section, in the order they will appear.
object
The settings of the section.

Scope

Itโ€™s accessible globally in any section or block.