Accordion Block Settings Overview

Updated on September 18, 2023 by Ananda

Table of Contents

Accordion is a handy block when you want to show a list of content to your users and when they click on an item it expands to show the content. It is very frequently used to create FAQ sections on websites or blog posts.

With The Plus Blocks for Gutenberg Accordion block, you can create amazing accordions for your website using its unique set of features.

Required Setup

  • Make sure the default WordPress Block editor is active. 
  • You need to have The Plus Blocks for Gutenberg plugin installed and activated.
  • Make sure the Accordion block is activated, to verify this visit Plus Settings → and Search for Accordion and activate.
  • This is a Freemium block to unlock the extra features, you need the PRO version of The Plus Blocks for Gutenberg.

How to activate the Accordion Block?

Go to 

  • The Plus Settings Plus blocks 
  • Search the block name and turn on the toggle then click Save.
accordion activate

Key Features

  • Multiple content sources – There are three different content types you can use in your accordion, Content (Free), Editor (Free) and Reusable Block (Pro). With the Editor option, you can use other WordPress blocks like image, shortcode, container etc. inside the accordion.
  • Show dynamic content in accordion (Pro) – You can make your accordions very versatile by showing dynamic data from different parts of your website like post title, post excerpt etc using the dynamic field options. 
  • Individual icons for each accordion (Free) – You can easily assign different icons for each accordion item from the Front Icon option located inside each accordion item. Turn on the toggle to set the icon.
  • Unique ID (Free) – You can add a unique id for each accordion item to easily create anchor links directly to the accordion item. 
  • Set standard icons for all accordion items (Free) – You can easily add the standard open and close icons for all accordion items.
  • Different HTML tag options for accordion headings (Free) – To help your SEO efforts you can set different HTML tags like H1, H2 etc. for the accordion headings.
  • Active Accordion (Pro) – With this option, you can easily choose any specific accordion item to be your active item.
  • On Hover Accordion (Pro) – You can open the accordion when someone hovers over the accordion title.
  • Carousel Connection ID (Pro) – Connect your accordion with the Carousel Anything block using a unique ID to create truly unique accordions. So when a user clicks on an accordion item the slider will also change.
  • SEO Schema Markup (Free)- Turn your accordion into SEO-friendly schema markup.

How to add an Accordion in WordPress Blocks?

There are multiple ways you can add an accordion block or any other block in the WordPress block editor.

Click on the + icon at the top left of the editor or the + icon in the editor and search for the name of the block or widget, for instance, TP Accordion Block, then click on the widget to add to the page.

Or you can type / (forward slash) in the editor and type the name of the block and then click on it to add.

This way you can add an accordion or any other Gutenberg block.

How to add content in the Accordion block?

The Plus Blocks for Gutenberg Accordion block has multiple ways to add content for both title and description.

To add content to a specific accordion, click on it, and you will see a field to add the title. You can write the title or use any dynamic field (pro) to dynamically create your accordion title.

This dynamic field option is an exclusive feature of The Plus Blocks for Gutenberg Pro.

To add a dynamic title, click on the cylindrical icon beside the title field and choose the desired field.

accordion dynamic title

Once you choose the field you will also see an Advanced Settings toggle, turn it on to set some prefix, postfix and fallback texts.

Note: Wherever you see that cylindrical icon within The Plus Blocks for Gutenberg blocks, you can use the dynamic fields.

Now for the description of the accordion, there are three options to choose from, Content (Free), Editor (Free) and Reusable Block (Pro).

With the content option, you will get the dynamic field feature to make your accordion description dynamic just like the title.

Second, on the list is Editor, this is a really powerful feature where you can directly use the  WordPress block builder within the accordion content. So it opens up a lot of opportunities to add different types of content for your accordion. You can add almost any WordPress block like images, gallery, shortcodes, carousel, video or Woocommerce products, just name it.

Then there is the Reusable Block method which is equally powerful as the editor method. You will also get to use the power of the default Gutenberg block builder to create unique layouts by using a different set of blocks.

The only difference is that you don’t create the block within the accordion but use it as a reusable block.

accordion reusable block

To learn more about the process, click here

Once you choose a reusable block you will see a Backend Visibility toggle option, to keep the editing experience smooth by default the blocks won’t be visible on the page, turn on the toggle to see the block once done you can turn it off.

Next, you will see an option for Front Icon, from here you can set an additional icon to an accordion item apart from the standard opening and closing icon. You can set different icons for each accordion item, turn on the toggle and choose from a list of icons.

Then you will see a field for Unique ID, you can give a unique id to each accordion item. You can use this id to directly link to an accordion item. You can read more about this process from here.

You can use the + Add Accordion button to add more accordion items.

How to Add Icons to Accordion in WordPress?

To set the standard expand and collapse icon of the accordions go to the Toggle Icon tab and turn on the Show Icon toggle. From here you can choose different icons for opening and closing state and their placement.

Powerful Extra options

These extra options make this Accordion block truly unique, we have covered a dedicated doc on each one of them so that you can understand them in depth.

How to enable SEO Schema Markup to Accordions Blocks in WordPress?

One of the most common use cases for an accordion is to create FAQs i.e. Frequently Asked Questions. If you can use the FAQ Scheme properly, it can boost your SEO and can show up in the Google SERP directly.

With The Plus Blocks for Gutenberg Accordion block, you can easily turn your accordion into an SEO-friendly structure using the built-in Schema Markup.To do this, add the accordion block to the page and go to the SEO Option tab and turn on Enable Schema Markup toggle. This will add the required structure for Schema support.

accordion seo schema

How to style accordion block in WordPress?

The Plus Blocks for Gutenberg Accordion block gives you many styling options to style your accordions. You will find all the styling options under the Style tab.Title (Free) – You can control the typography, alignment and colour for the accordion title’s normal, hover and active state from the Title tab.

accordion style options

Title Background (Free) – You can use the title background tab to style the background of the accordion title. From here you can control the title’s inner padding, border, background and spacing between the accordion items.

Description/Content (Pro) – Under this tab, you will find the typography and alignment options for the accordion inner content.

Description/Content Background (Pro) – From here you can style the background of the accordion description area apart from that you can also control the padding, margin and border.

Toggle Icon (Free) – Use this tab to style the standard expand and collapse icons of the accordions. Here you can control the icon colour, size and gap (from the title text).

Front Icon (Free) – If you want to control the style of the additional icons of your accordion, you can do so from this tab. You can manage the size, colour and spacing of the icon.

Extra Options (Pro) – Under the Extra Options, you will get two unique hover styles that you can use for the accordion title. You can also customise the hover background colour as well.

accordion hover style

Advanced – This is our global extension available for all our blocks. From here you can add a custom CSS class in the Additional CSS class(es) field. If you know CSS you can use this class to further finetune the style by using your own custom CSS.

Advanced options remain common for all our blocks, you can explore all it options from here.

View Advanced tab tutorial.