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.
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
- Install Blockenberg. Install from WordPress.org and activate the plugin.
- Insert the block. Edit a page, click +, search for “FAQ Schema”, insert it. Category: Business.
- Configure inspector controls that exist on this block. Open FAQ Items. Set “Allow multiple open”, “First item open by default”, “Icon Type”, “Icon Position”.
- 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
| Control | What the code does |
|---|---|
| Allow multiple open | On/off toggle in the inspector. Off by default. Saved as `allowMultiple`. |
| First item open by default | On/off toggle in the inspector. On by default. Saved as `expandFirst`. |
| Layout | Select control; the chosen value is saved on the block. Options: Default (Separated); Boxed; Minimal; Bordered Left. block.json default: default. Saved as `layout`. |
| Icon Type | Select control; the chosen value is saved on the block. Options: Chevron; Plus / Minus; Arrow; None. block.json default: chevron. Saved as `iconType`. |
| Icon Position | Select 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 — Text | Color control in the inspector. block.json default: #111827. Saved as `questionColor`. |
| Question Colors — Background | Color 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 — Text | Color control in the inspector. block.json default: #374151. Saved as `answerColor`. |
| Answer Colors — Background | Color control in the inspector. block.json default: #ffffff. Saved as `answerBg`. |
| Icon & Border Colors — Icon | Color 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 — Border | Color control in the inspector. block.json default: #e5e7eb. Saved as `borderColor`. |
| Divider | Color control in the inspector. block.json default: #f3f4f6. Saved as `dividerColor`. |
What the front-end script actually does
- The view script reads HTML data attributes: data-allow-multiple, data-speed.
- Headers keep aria-expanded in sync so screen readers hear open vs closed.
- A multiple-open flag on the wrapper decides whether several panels can stay open.
- Keyboard handlers move focus between items.
When this is the right block
- FAQ block with automatic FAQPage JSON-LD structured data for SEO rich snippets — that is the job of FAQ Schema, not a generic content block.
- Use it when you need the editor control labeled “Allow multiple open”, which exists on this block’s inspector.
- It matches pages about faq, questions, answers.
- Inserter grouping: company, service, and operations pages.
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
FAQ Accordion
FAQ section with smooth accordion expand/collapse, rich typography, and schema.org markup support.
FAQ Grid
Display frequently asked questions as a scannable card grid — ideal for pricing pages and knowledge bases.
FAQ Categories
Categorized FAQ with a sidebar (or top tab bar) category navigator and an accordion for each category. Ideal for comprehensive help centers and support pages.
FAQ Section
Complete FAQ landing-page section with styled section header, inline accordion items, multiple layout variants, and a bottom contact CTA. Different from FAQ Schema (SEO) and FAQ Categories (search UI).
Event Card
Event display card with date, time, venue, description, speakers, call-to-action button, and Event JSON-LD structured data.
FAQ Chat
Chat-bubble style FAQ. Visitors click questions to reveal bot-style answers with a typing indicator — a conversational alternative to accordion FAQ.
Get Blockenberg
Install Blockenberg from WordPress.org, then insert FAQ Schema from the Gutenberg inserter.