Business · Gutenberg

FAQ Accordion block for WordPress

FAQ section with smooth accordion expand/collapse, rich typography, and schema.org markup support.

Get Blockenberg

Free Gutenberg block in Blockenberg. The inspector controls and front-end behavior on this page come from this block’s source, not a shared stub.

Get Blockenberg

What it actually does

FAQ section with smooth accordion expand/collapse, rich typography, and schema.org markup support.

Inspector panels on this block: Section Header, Style & Behavior, FAQ Items. Those titles come from index.js, not from a shared template.

Behavior controls: “Heading Alignment” options: Left, Center; “Accordion Style” options: Minimal (lines), Bordered, Card, Boxed, Dark; “Icon Style” options: Plus / Minus, Chevron (arrow), Arrow.

Where to find it

Gutenberg inserter → Business → search “FAQ Accordion” (block name `blockenberg/faq-accordion` in block.json). Style it in the sidebar after insert.

How to use FAQ Accordion block for WordPress

  1. Install Blockenberg. Install from WordPress.org and activate the plugin.
  2. Insert the block. Edit a page, click +, search for “FAQ Accordion”, insert it. Category: Business.
  3. Configure inspector controls that exist on this block. Open Section Header. Set “Show Heading”, “Heading”, “Show Subheading”, “Subheading”.
  4. Check the published page. The view script reads HTML data attributes: data-allow-multiple, data-faq-item. The block editor preview may not run the same view script.

Inspector controls from this block’s code

ControlWhat the code does
Show HeadingOn/off toggle in the inspector. On by default. Saved as `showHeading`.
HeadingText field in the inspector. block.json default: Frequently Asked Questions. Saved as `heading`.
Show SubheadingOn/off toggle in the inspector. On by default. Saved as `showSubheading`.
SubheadingText field in the inspector. block.json default: Everything you need to know about the product and billing.. Saved as `subheading`.
Heading AlignmentSelect control; the chosen value is saved on the block. Options: Left; Center. block.json default: center. Saved as `headingAlign`.
Accordion StyleSelect control; the chosen value is saved on the block. Options: Minimal (lines); Bordered; Card; Boxed; Dark. block.json default: minimal. Saved as `style`.
Icon StyleSelect control; the chosen value is saved on the block. Options: Plus / Minus; Chevron (arrow); Arrow. block.json default: plus. Saved as `iconStyle`.
Show IconOn/off toggle in the inspector. On by default. Saved as `showIcon`.
Show NumbersOn/off toggle in the inspector. Off by default. Saved as `showNumbers`.
Allow Multiple OpenOn/off toggle in the inspector. Off by default. Saved as `allowMultiple`.
Add Schema.org MarkupOn/off toggle in the inspector. On by default. Saved as `addSchema`.
Max Content Width (px)Numeric range control in the inspector. Range 400–1100. block.json default: 760. Saved as `maxWidth`.
Card Radius (px)Numeric range control in the inspector. Range 0–24. block.json default: 12. Saved as `cardRadius`.
Item Gap (px)Numeric range control in the inspector. Range 0–32. block.json default: 12. Saved as `itemGap`.
Padding Top (px)Numeric range control in the inspector. Range 0–180. block.json default: 64. Saved as `paddingTop`.
Padding Bottom (px)Numeric range control in the inspector. Range 0–180. block.json default: 64. Saved as `paddingBottom`.
Heading (Typo Heading)Shared Blockenberg typography popover (family, size, weight, spacing). Saved as `typoHeading`.
Subheading (Typo Subheading)Shared Blockenberg typography popover (family, size, weight, spacing). Saved as `typoSubheading`.
QuestionShared Blockenberg typography popover (family, size, weight, spacing). Saved as `typoQuestion`.
AnswerShared Blockenberg typography popover (family, size, weight, spacing). Saved as `typoAnswer`.
Icon Size (px)Numeric range control in the inspector. Range 12–32. block.json default: 20. Saved as `iconSize`.
Section-to-FAQ Gap (px)Numeric range control in the inspector. Range 16–96. block.json default: 48. Saved as `sectionGap`.
QuestionText field in the inspector.
AnswerMultiline text field in the inspector.
Open by defaultOn/off toggle in the inspector.
Colors — BackgroundColor control in the inspector. block.json default: #ffffff. Saved as `bgColor`.
Accent ColorColor control in the inspector. block.json default: #6c3fb5. Saved as `accentColor`.
HeadingColor control in the inspector. block.json default: #0f172a. Saved as `headingColor`.
SubheadingColor control in the inspector. block.json default: #64748b. Saved as `subColor`.
Question TextColor control in the inspector. block.json default: #0f172a. Saved as `questionColor`.
Answer TextColor control in the inspector. block.json default: #475569. Saved as `answerColor`.
Colors — IconColor control in the inspector. block.json default: #6c3fb5. Saved as `iconColor`.
Colors — BorderColor control in the inspector. block.json default: #e2e8f0. Saved as `borderColor`.
Card BackgroundColor control in the inspector. block.json default: #ffffff. Saved as `cardBg`.

What the front-end script actually does

When this is the right block

Notes from the implementation

viewScript: this folder’s frontend.js is enqueued on the front end for this block.

FAQ

How do I add the FAQ Accordion block in WordPress?

Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “FAQ Accordion”. It sits under Business. After insert, open Section Header and set “Show Heading”, “Heading”, “Show Subheading”, “Subheading”.

What makes FAQ Accordion different from other Blockenberg blocks?

FAQ section with smooth accordion expand/collapse, rich typography, and schema.org markup support. Inspector labels on this block include “Show Heading”, “Heading”, “Show Subheading”, “Subheading”.

Is the FAQ Accordion Gutenberg block free?

Yes. FAQ Accordion ships inside Blockenberg. Get the plugin from WordPress.org — no paid add-on is required for this block.

Can I style FAQ Accordion to match my theme?

Yes. Blockenberg’s shared typography and color panels apply here, plus any block-specific style controls listed on this page (panels: Section Header, Style & Behavior, FAQ Items).

Related business blocks

Get Blockenberg

Install Blockenberg from WordPress.org, then insert FAQ Accordion from the Gutenberg inserter.

Get Blockenberg