Accordion Block
Use the Accordion Block to create an expandable list of information.
Quick links
Overview
In the Gutenberg editor, open the block section and click or drag the Accordion Block to the editor area. Main elements of the block are:
- Subtitle
- Title
- Paragraph
- Accordion button
- Add item button
Note: Because of the frequency of use, the first three elements (Subtitle, title and paragraph) of the Text Block are integrated in almost every Sana block.
Settings
If the settings side panel is not visible while working on your page or post, click on the Settings icon in the top left corner of the editor toolbar. Once opened you will see all the available options of the selected block, organized into collapsible tabs.
General
- Multiple Expansions – Allow multiple accordion items to be open at the same time
- Content Align – Align the entire block content left, center or right
- Padding – Add top and bottom block padding
- Background – Choose a solid color or a background image
Note: Content Align positions containers within the block, while Text Align positions text within its own container.
Subtitle, Title, Paragraph
- On/Off toggle – Display or hide the element
- Text Align – Align text left, center or right within its own container
- Font Size – Choose from nine preset sizes or add a custom font size
- Text Color – Select a color for the subtitle, title and paragraph
Responsive
- Hide on Desktop – Block is visible on mobile, but not on desktop screens
- Hide on Mobile – Block is visible on desktop, but not on mobile screens
Tip: You can create two separate blocks for a section of your page and load each block on a different screen size.
Accordion Item
Within the Accordion Block you will find the Accordion Item. This inner block behaves like a module that gives you more flexibility and control over your content.
Tip: Inner blocks are similar to regular blocks. Feel free to move them around, delete them or add new ones.
General
Turn on the Initially Open toggle to display this section in an expanded state when the page loads.
Title
- Text Align – Align text left, center or right within its own container
- Font Size – Choose from nine preset sizes or add a custom font size
- Text Color – Select a color for the subtitle, title and paragraph
Paragraph
- Text Align – Align text left, center or right within its own container
- Font Size – Choose from nine preset sizes or add a custom font size
- Text Color – Select a color for the subtitle, title and paragraph