Back to Documentation

Accordion Block

Follow the instructions on how to add an accordion block to your page and edit the Accordion(s) settings.


Adding an accordion block to your website is super simple. The Accordions blocks which are animated, collapsible content areas, are a nice way to display a larger amount of content within a smaller area on your website.

These accordions offer a bunch of design and layout options to make then suit your website and brand.

Example:

All colors, sizing and layouts are customizable for the Accordion blocks:

Open and close accordions separately:

Accordion One

Accordion 1 content

Accordion Two

Accordion 2 content

More Content

And some more…

Accordion Three

Accordion 3 content

Open and close accordions 1 at a time:

Accordion One

Accordion 1 content

Accordion Two

Accordion 2 content

More Content

And some more…

Accordion Three

Accordion 3 content

Add the Accordion block:

All you need to do, after installing the Blockons WordPress plugin, and when you’re on the page editor of the page you’re wanting to add the accordion to, is click the little plus icon to add a new block and then search for “accordion“.

Search for Accordions in the WordPress block editor
Search for the Accordion block

You can also click “Browse all” to open the left sidebar and then scroll down to find the “Blockons Blocks” category and click the Accordion block there to add it to the page.

Add an accordion via the left sidebar
Add an accordion via the left sidebar

Once you’ve added the Accordions block, you will see a full width plus sign, click this to add your first accordion to the page and then you can start editing the look of the accordion(s).

Add accordions to the Accordions block
Click the plus to add the first accordion

The accordions are added one by one so that you can easily edit the look as you add them, with this way, you are able to add multiple different looking accordions, or add a bunch of accordions that all look the same.

Blockons Accordions
Blockons – Accordion Block

There are 2 sections of settings where you are able to edit the accordions look and how they display the content.

Edit the parent Accordion block settings:

By default when you click on the accordion block, it will usually select a child block and display the child block settings, there are also a few settings which sit within the parent block panels, so to select the parent block of the accordion, you can either click the 3 dots on the block menu and then select “Select parent block (Accordions)“.

Select the parent Accordion Block
Select the parent Accordion Block

You will then find the settings for the parent block in the right sidebar panel under “Accordion Settings“.

These settings include changing the basic design of the accordions, change the layout of the icon, select if the accordions only open 1 at a time, etc.

Edit the child Accordion block settings:

When you have a child block selected, this is shown by giving the block an orange border with an orange sign saying “Child Selected” as shown here:

Displaying that a child accordion block is selected
Child selected display

You can edit the Accordion label by simply clicking within the label text area, and change the accordion icon by hovering over the icon and select from the icon options that appear when you click the icon.

Change the Accordion block icon
Change the Accordion block icon

When the child accordion block is selected, in the right sidebar you will find all the settings available for editing that accordion block… This offers changing the html elements, keeping the panel open on the initial page load, editing font sizing and colors, etc.

Accordion Settings
Accordion Settings

To create multiple of the same design accordions, we suggest adding the first accordion panel, adjusting the design settings to make them look as you’re wanting it to look, then duplicate the block by clicking on the 3 dots on the block menu and then click Duplicate.

Blockons - Design and then duplicate the accordion block
Design and then duplicate the accordion block

To add content to the accordion, you can start typing text in the auto-added paragraph block, or you can add any other blocks you like by clicking on the little plus sign for adding blocks.

If something does not work, you have new feature ideas for the accordions, or you simply need help using these accordion blocks then please get in touch and we’ll assist.