Business · Gutenberg
FAQ with Search block for WordPress
Accordion FAQ with a live client-side search filter above the items.
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
Accordion FAQ with a live client-side search filter above the items.
Inspector panels on this block: FAQ Items, Search Settings, Accordion Behaviour, Layout. Those titles come from index.js, not from a shared template.
Behavior controls: “Item Style” options: Bordered, Boxed, Plain (dividers).
Where to find it
Gutenberg inserter → Business → search “FAQ with Search” (block name `blockenberg/faq-search` in block.json). Style it in the sidebar after insert.
How to use FAQ with Search block for WordPress
- Install Blockenberg. Install from WordPress.org and activate the plugin.
- Insert the block. Edit a page, click +, search for “FAQ with Search”, insert it. Category: Business.
- Configure inspector controls that exist on this block. Open FAQ Items. Set “Question”, “Answer”, “Show Search Bar”, “Search Placeholder”.
- Check the published page. The view script reads HTML data attributes: data-opts. The block editor preview may not run the same view script.
Inspector controls from this block’s code
| Control | What the code does |
|---|---|
| Question | Text field in the inspector. |
| Answer | Multiline text field in the inspector. |
| Show Search Bar | On/off toggle in the inspector. On by default. Saved as `showSearch`. |
| Search Placeholder | Text field in the inspector. block.json default: Search FAQs…. Saved as `searchPlaceholder`. |
| No Results Text | Text field in the inspector. block.json default: No FAQs match your search.. Saved as `noResultsText`. |
| Open First Item by Default | On/off toggle in the inspector. Off by default. Saved as `openFirst`. |
| Allow Multiple Open | On/off toggle in the inspector. Off by default. Saved as `allowMultiple`. |
| Item Style | Select control; the chosen value is saved on the block. Options: Bordered; Boxed; Plain (dividers). block.json default: bordered. Saved as `itemStyle`. |
| Border Radius (px) | Numeric range control in the inspector. Range 0–30. block.json default: 10. Saved as `borderRadius`. |
| Question (Typo Question) | Shared Blockenberg typography popover (family, size, weight, spacing). Saved as `typoQuestion`. |
| Answer (Typo Answer) | Shared Blockenberg typography popover (family, size, weight, spacing). Saved as `typoAnswer`. |
| Question Text | Color control in the inspector. block.json default: #111827. Saved as `questionColor`. |
| Answer Text | Color control in the inspector. block.json default: #4b5563. Saved as `answerColor`. |
| Accent / Icon | Color control in the inspector. block.json default: #7c3aed. Saved as `accentColor`. |
| Colors — Border | Color control in the inspector. block.json default: #e5e7eb. Saved as `borderColor`. |
| Item Background | Color control in the inspector. block.json default: #ffffff. Saved as `itemBg`. |
| Section Background | Color control in the inspector. Saved as `bgColor`. |
| Max Width (px) | Numeric range control in the inspector. Range 400–1200. block.json default: 800. Saved as `maxWidth`. |
| Padding Top (px) | Numeric range control in the inspector. Range 0–200. block.json default: 48. Saved as `paddingTop`. |
| Padding Bottom (px) | Numeric range control in the inspector. Range 0–200. block.json default: 48. Saved as `paddingBottom`. |
What the front-end script actually does
- The view script reads HTML data attributes: data-opts.
- 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.
When this is the right block
- Accordion FAQ with a live client-side search filter above the items — that is the job of FAQ with Search, not a generic content block.
- Use it when you need the editor control labeled “Question”, which exists on this block’s inspector.
- 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 with Search block in WordPress?
Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “FAQ with Search”. It sits under Business. After insert, open FAQ Items and set “Question”, “Answer”, “Show Search Bar”, “Search Placeholder”.
What makes FAQ with Search different from other Blockenberg blocks?
Accordion FAQ with a live client-side search filter above the items. Inspector labels on this block include “Question”, “Answer”, “Show Search Bar”, “Search Placeholder”.
Is the FAQ with Search Gutenberg block free?
Yes. FAQ with Search ships inside Blockenberg. Get the plugin from WordPress.org — no paid add-on is required for this block.
Can I style FAQ with Search 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, Search Settings, Accordion Behaviour, Layout).
Related business blocks
About Section
Ready-made About Us section with split image/video + text layout, optional company stats row, badge label, CTA buttons, and full background/color controls.
Address Card
Business address card with contact details, opening hours, and optional map link.
App Screenshot
SaaS/app product screenshot section with annotated callout points, device frame, heading, subtext, and CTA. Perfect for software landing pages.
Author Box
Display a blog author profile card with avatar, name, bio, role and social media links.
Author Profile
Extended author bio card with avatar, name, role, bio, stats, and social links.
Avatar Group
Overlapping stack of user or team avatars with an optional +X counter bubble.
Get Blockenberg
Install Blockenberg from WordPress.org, then insert FAQ with Search from the Gutenberg inserter.