Business · Gutenberg

FAQ Schema block for WordPress

FAQ block with automatic FAQPage JSON-LD structured data for SEO rich snippets.

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 block with automatic FAQPage JSON-LD structured data for SEO rich snippets.

Inspector panels on this block: FAQ Items, Layout & Style, Question Colors, Answer Colors, Icon & Border Colors. Those titles come from index.js, not from a shared template.

Behavior controls: “Layout” options: Default (Separated), Boxed, Minimal, Bordered Left; “Icon Type” options: Chevron, Plus / Minus, Arrow, None; “Icon Position” options: Right, Left.

Where to find it

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

How to use FAQ Schema 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 Schema”, insert it. Category: Business.
  3. Configure inspector controls that exist on this block. Open FAQ Items. Set “Allow multiple open”, “First item open by default”, “Icon Type”, “Icon Position”.
  4. Check the published page. The view script reads HTML data attributes: data-allow-multiple, data-speed. The block editor preview may not run the same view script.

Inspector controls from this block’s code

ControlWhat the code does
Allow multiple openOn/off toggle in the inspector. Off by default. Saved as `allowMultiple`.
First item open by defaultOn/off toggle in the inspector. On by default. Saved as `expandFirst`.
LayoutSelect control; the chosen value is saved on the block. Options: Default (Separated); Boxed; Minimal; Bordered Left. block.json default: default. Saved as `layout`.
Icon TypeSelect control; the chosen value is saved on the block. Options: Chevron; Plus / Minus; Arrow; None. block.json default: chevron. Saved as `iconType`.
Icon PositionSelect control; the chosen value is saved on the block. Options: Right; Left. block.json default: right. Saved as `iconPosition`.
Gap Between Items (px)Numeric range control in the inspector. Range 0–40. block.json default: 10. Saved as `spacing`.
Border Radius (px)Numeric range control in the inspector. Range 0–24. block.json default: 8. Saved as `borderRadius`.
Question Padding (px)Numeric range control in the inspector. Range 8–40. block.json default: 18. Saved as `questionPadding`.
Answer Padding (px)Numeric range control in the inspector. Range 8–40. block.json default: 16. Saved as `answerPadding`.
Animation Speed (ms)Numeric range control in the inspector. Range 0–800. block.json default: 300. Saved as `animationSpeed`.
Question Colors — TextColor control in the inspector. block.json default: #111827. Saved as `questionColor`.
Question Colors — BackgroundColor control in the inspector. block.json default: #ffffff. Saved as `questionBg`.
Background (Hover)Color control in the inspector. block.json default: #f9fafb. Saved as `questionHoverBg`.
Text (Active)Color control in the inspector. block.json default: #1d4ed8. Saved as `activeQuestionColor`.
Background (Active)Color control in the inspector. block.json default: #eff6ff. Saved as `activeQuestionBg`.
Answer Colors — TextColor control in the inspector. block.json default: #374151. Saved as `answerColor`.
Answer Colors — BackgroundColor control in the inspector. block.json default: #ffffff. Saved as `answerBg`.
Icon & Border Colors — IconColor control in the inspector. block.json default: #6b7280. Saved as `iconColor`.
Icon (Active)Color control in the inspector. block.json default: #2563eb. Saved as `iconActiveColor`.
Icon & Border Colors — BorderColor control in the inspector. block.json default: #e5e7eb. Saved as `borderColor`.
DividerColor control in the inspector. block.json default: #f3f4f6. Saved as `dividerColor`.

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 Schema block in WordPress?

Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “FAQ Schema”. It sits under Business. After insert, open FAQ Items and set “Allow multiple open”, “First item open by default”, “Icon Type”, “Icon Position”.

Does FAQ Schema output FAQ schema?

Yes, when the schema toggle on this block is on. The front-end script injects FAQPage JSON-LD. That is not the same as Yoast/Rank Math site-wide schema.

Is the FAQ Schema Gutenberg block free?

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

Can I style FAQ Schema 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: FAQ Items, Layout & Style, Question Colors, Answer Colors).

Related business blocks

Get Blockenberg

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

Get Blockenberg