Accordions (Content Toggle) Block

The Accordions block (also called the Content Toggle block) in Ultimate Blocks lets you add collapsible panels that readers open and close with one click. It is a simple way to build FAQ sections, and it can add FAQ schema so Google understands your questions and answers. The block is free, and Ultimate Blocks Pro adds a content search box that finds and highlights text inside the panels.

Block name in the editorAccordions (UB)
PlanFree (content search needs Pro)
Best forFAQ sections, product details, policies, documentation and long content you want to keep compact
Live demoSee the Accordions block in action

What you can use it for #

  • Build an FAQ section with FAQ schema (FAQPage structured data) for search engines.
  • Show product details, shipping info and return policies in compact panels.
  • Break long documentation or policies into sections readers can open as needed.
  • Hide spoilers, answers to quizzes or extra details until a reader asks for them.
  • Let readers search inside a long FAQ and see matches highlighted (Pro).

How to add the Accordions block #

  1. Open the post or page in the WordPress block editor.
  2. Click the + (Block Inserter) button.
  3. Search for Accordions (you can also search for content toggle) and click the Accordions (UB) block to add it.
  4. Type a title in the first panel, then add the content below it.
Add Content Toggle Block

Add, remove and edit panels #

Each panel has a title and a content area. Hover over a panel to see its controls:

  • Insert New Toggle Above and Insert New Toggle Below (the + icons): add a new panel before or after the current one.
  • Delete This Toggle (the x icon): remove the panel.
  • Move up and Move down in the block toolbar: change the order of the panels.
  • Switch toggle location (the left and right arrows icon): move the open and close icon to the other side of the title.
Add and Remove Content Toggle

Click the panel title to edit it. Titles support bold, italic and links. Click inside the content area to add blocks with the + button. A panel can hold any block: text, lists, images, videos, buttons or even another accordion.

Add Content to the Content Toggle Block

Settings tab #

Select a panel and open the block sidebar on the right. The Settings tab (gear icon) has these panels:

General Settings of the Content Toggle Block

Title #

  • Title tag: the HTML tag of every panel title, H1 to H6 or P for normal text. Headings show up in the page outline, so pick one that fits the headings around the block.

Open / Close behavior #

  • Only one panel open at a time: opening a panel closes the others. The first panel starts open.
  • Initial state: what readers see when the page loads. Choose All panels open, All panels closed, One panel open, or Set on each panel to decide for each panel whether it starts open or closed.
  • Collapsed on mobile: on phones every panel starts closed, whatever the initial state says, so mobile visitors see a short list of titles.
  • Prevent collapse: panels stay open and visitors cannot close them.

Each option has a one-line description under it in the sidebar, so you can see what it does before you change it.

FAQ Schema #

  • Enable FAQ Schema: add FAQPage structured data to the page. Each panel title becomes a question and its content becomes the answer. Use it when your panels really are questions and answers.

Read the full guide: How to add FAQ schema in WordPress.

Advanced #

  • Panel ID: give the panel an anchor so you can link straight to it (one or two words, no spaces).
  • Use this panel in the Table of Contents: list this panel title in the Ultimate Blocks Table of Contents block. This option is hidden when the title tag is P.

Styles tab #

Switch to the Styles tab (half-circle icon) to change the look of the block:

  • Toggle Icon: choose a chevron, a plus sign or None, and set its Position to Left or Right of the title.
  • Color: Title Background, Title Text, Title Link, Toggle Icon and Search Box Border Color.
  • Dimensions: padding and margin of the whole block, in their own panel.
  • Border: Panel Border (the border width around each panel) and Panel Border Radius, in their own panel.
Colorize the Content Toggle Block

Pro features #

Content search: turn on Enable content search to show a search box above the accordion. Readers type a word and the block shows only the panels that contain it.

  • Show search summary: show how many matches were found.
  • Highlight: highlight the matching words inside the panels.
  • Match case: only match words with the same upper and lower case.
  • Search input filters: choose what the search looks at.
  • Search Alignment and Stretch: position the search box or make it full width.
  • Search Box Border Color: match the search box to your design.

Read the full guide: How to add search to accordions. Get Ultimate Blocks Pro to unlock content search.

Extensions you can use with this block #

Frequently asked questions #

How do I add an accordion in WordPress?

Does the Accordions block add FAQ schema?

How do I keep all panels closed when the page loads?

Can I allow only one open panel at a time?

Can I link directly to a panel?

Is the Accordions block free?

Related docs #

Updated on November 24, 2026

What are your feelings

  • Happy
  • Normal
  • Sad