Section
Group your article into content sections
Last modified: May 4, 2023
Section blocks are used to group post content into separate sections.
By default, they can contain any content (no restrictions), but you can use
it do create your own variations for specific content.
The section blocks themselves are always full width, their inner content however can be set to
- Content width: Centre aligned
- Content width: Left aligned to the wide width content
- Content width: Right aligned to the wide width content
- Wide width: Center aligned
- Full width (with global padding if enabled)
Section blocks can be transparent or have a background color. Colors are defined
in theme.json. Section blocks support spacing, if enabled in the theme.
They also support a custom T2 minimum height.
Block name
t2/section
Style properties
Padding
- --t2-section-padding-block
- Theme.json: wp.custom.t2-section.padding-block
- Default: 2rem
Padding
- --t2-section-padding-block-bg
- Theme.json: wp.custom.t2-section.padding-block-bg
- Default: 2rem