Skip to content

Accordion ​

Organize content into expandable sections for improved readability.

The Accordion block lets you stack content into collapsible panels, so visitors can expand only the sections they care about. It is perfect for FAQs, product specs, documentation and any long-form content you want to keep tidy. Each panel is a separate Accordion Item child block.

Accordion is a dynamic block β€” its final markup is rendered by PHP on the front end.

Accordion block in the editor

See it in action ​

Accordion expanding and collapsing panels

When to use it ​

  • To build FAQ sections where each question expands to reveal its answer.
  • To condense long content (specs, policies, instructions) into scannable sections.
  • Anywhere you want visitors to reveal content on demand instead of scrolling past it.

How to add it ​

  1. Click the + block inserter in the editor.
  2. Search for Accordion and select it.
  3. The block starts with one or more Accordion Item panels β€” edit the title and content of each.
  4. Use the inserter inside the Accordion to add more items.

Adding an Accordion

Settings ​

Select the Accordion and open the inspector. Settings are split across two tabs: General (specific to this block) and Advanced (shared by all Styble blocks).

General tab ​

Each General-tab panel has Settings and Style sub-tabs. The structural controls live under Settings.

Accordion ​

ControlWhat it does
Item GapSpacing between accordion items (responsive).
Activator EventWhat opens an item: On Click or Hover.
Initial Accordion DisplayWhich item(s) are open when the page loads.
Multiple Open TogetherAllow more than one item to stay open at once.

Title & Content ​

ControlWhat it does
Title HTML TagSemantic tag for the item title (e.g. H2–H6).
Title Featured IconToggle an icon next to the title.
Icon SourceChoose between the icon library or a custom uploaded image (shown when the featured icon is on).
Choose IconPick the icon from the library or upload a custom image.
Icon SizeSize of the title icon.
Icon to Title GapSpacing between the icon and the title text.
AlignmentAlign the title left, center or right.

Expand & Collapse Icon ​

ControlWhat it does
Icon SourceLibrary icon or custom image for the expand toggle.
Choose Expand IconPick or upload the icon shown when an item is closed.
Collapse IconHow the collapsed state is shown: Rotation (rotate the expand icon) or Custom (use a separate icon).
ScaleRotation amount in degrees, when Collapse Icon is set to Rotation.
Choose Collapse IconPick or upload a separate icon, when Collapse Icon is set to Custom.
Icon SizeSize of the toggle icon (responsive).
AlignmentPosition the toggle icon left, center or right.

Styling

The Style sub-tab inside each panel controls colors, typography, backgrounds and spacing. These pull from your Global Settings tokens so the accordion stays on-brand.

Advanced tab ​

The Advanced tab is shared by every Styble block. See Advanced settings.

Accordion Item (child block) ​

Accordion Item β€” Single accordion / FAQ item. This is the panel inside an Accordion. It can only be placed inside a parent Accordion block, and it holds your content as inner blocks.

In the editor you edit the panel directly:

  • Title β€” type the panel heading ("Add your accordion title here").
  • Content β€” add any blocks inside the panel ("Add accordion content…").
  • Replace Icon β€” swap the title's featured icon from the item toolbar.

General tab ​

Accordion Item ​

ControlWhat it does
Keep This Item OpenForce this specific item to stay open. Shown only when the parent's Initial Accordion Display is set to the default mode.

Advanced tab ​

See Advanced settings.

Nesting & relationships ​

  • Accordion is the parent; Accordion Item blocks live directly inside it.
  • An Accordion Item cannot be used on its own β€” it only appears inside an Accordion.
  • Each item can contain any blocks (paragraphs, images, lists, other Styble blocks).
  • Supports wide and full width alignment from the block toolbar.

Tips & common patterns ​

  • For an FAQ, set Activator Event to On Click and leave Multiple Open Together off so only one answer shows at a time.
  • Use Keep This Item Open on your most important item so visitors see it first.
  • Choose Collapse Icon: Rotation with a 180Β° Scale for the classic chevron flip.
  • Define colors and typography in Global Settings so every Accordion matches your theme.

Released under the GPL-2.0-or-later License.