We’re on vacation till 19 June. Support replies might be delayed than usual. Thank you for being patient and considerate.

Up to 65% off Early Bird LTD ➜ GutenKit – Gutenberg Page Builder Blocks!



The GutenKit Accordion block is the perfect solution for giving your audience easy access to long-form content. It adds a collapsible section to your WordPress website along with providing features to adore the accordion section in both active and inactive stages.

In this documentation, we are going to show how to create accordion sections on the default Gutenberg editor.

How to Add Accordion Blocks on Gutenberg Website #

To start the process, you are required to install the GutenKit plugin. Once you’re done, simply follow the below steps.

Step 1: Add GutenKit Accordion Block #

From your WordPress dashboard, 

  • Follow Pages > Add New Page or start editing an existing page.
  • To add a new block click the “+” icon at the top of the block editor screen.
  • Search for the GutenKit Accordion.
  • Once it appears, click the icon or drag & drop it.

Step 2: Add Accordion Items #

Open the block settings, where you will add your accordion title, description, and icon.

Accordion: #

By default, the accordion block loads with three items. Click on any item to edit the title and description text. There is a “Keep This Slide Open” option, enabling it will keep this slider or item always open to your visitors.

Further, hit the “Add New” button to add a new accordion item. You can also copy an already customized item by clicking the “Clone Item” icon. And, if you don’t wish to keep an item, just hit the “X” button.

GutenKit Accordion Block

Select Style: Select your desired accordion layout from 5 premade styles.

Icon: #

  • Icon Position: Define the positioning of your icon between left and right. Or, you can show icons on both sides.
  • Show Loop Count: Enable this toggle button to show number counting with accordion items. Note that selecting the “Both Sides” option in the previous setting will make this setting disappear.
  • Right/ Left Icon: Add an indicator icon for visitors to open the accordion slider.
  • Right/ Left Icon Active: Show an icon for the active accordion slider.

*In addition to selecting from the icon library, you can also upload an SVG icon file from your own device.

Step 3: Style Accordion Text Content #

Title: #

  • Typography: Use this setting area to apply all the typography customization options like font family, size, weight, style, decoration, line height, etc.

Up next, the following options are available for both Open and Closed options. That means you can customize the title text separately for active and inactive stages.

  • Color: Set a color for the title text.
  • Background Type: Choose between a solid color and a gradient background for the title background.
  • Border: Control the width, set color, and style for the title border.
  • Border Radius: Define the roundness of the title border.
  • Box Shadow: Use these controls to set box shadow around the title border.
  • Padding: Adjust the padding of the accordion item title.
  • Margin Bottom: Use the slider or add a custom value to set the gap between accordion items.

Description: #

  • Color: Choose your accordion item description text color.
  • Typography: Here, you’ll find options to change the description text font family, size, weight, style, spacing, and more.
  • Background Type: Choose a background type between solid color and gradient.
  • Border Radius: Define the roundness of the description area border.
  • Padding: Adjust the inner space of the description area.

Step 3: Customized Accordion Border & Icon #

Border: #

Similar to the title option, you can also customize the border separately for both Open and Closed modes.

  • Border: Control the width, set color, and style for the accordion item border.
  • Border Radius: Define the roundness of the accordion item border.
  • Box Shadow: Use these controls to bring shadow effects around the accordion item border.
  • Disable Border For Last Elements: Enable this toggle button to disable the border for the last accordion item.

Icon: #

The below icon styling settings are applicable for both Closed Icon and Open Icon

  • Icon Size: Define the size of icons.
  • Color: Use the color picker to add color to the icon.
  • Background Type: Select a background type between solid color and gradient.
  • Border: Use this setting area to apply border color, style, and width around the icon.
  • Border Radius: This setting will define the roundness of the icon border.
  • Padding: Adjust the padding of the icon.
  • Margin: Adjust the margin around the icon.

Step 4: Advanced Settings #

From the Advanced Settings tab, you can configure the Accordion block layout, background, border styles, and control its visibility.

Layout: #

  • Margin: Define the space around the block layout. It helps to set gap between another block.
  • Padding: Enter a value to set the space around the block within its layout.
  • Width: Apart from keeping the default layout width.
    • Full Width: Selecting this will make the layout span the full width of the screen.
    • Inline (Auto): Applying it will have the same width as the block element.
    • Custom: Choosing this option will reveal a slider to define the horizontal space of the block layout.
  • Z-Index: Use the slider to specify the stack ordering of the block with other blocks.

Position: #

Under the dropdown, you will see three options: Default, Absolute, and Fixed

  • Absolute: Selecting this option will give you an absolute position of the block, meaning elements will fit into their container.
  • Fixed: The Fixed position option will let the element fit into the entire viewport or screen.

Both, Absolute and Fixed options have similar settings like the below:

  • Horizontal Orientation: Choose the positioning direction between left and right.
  • Offset: Use the slider or put a value manually to adjust the horizontal positioning of the block.
  • Vertical Orientation: Select the positioning direction between up or down.
  • Offset: Use the slider or put a value manually to adjust the vertical positioning of the block. 

Background: #

  • Background: Choose a background option between solid color, gradient, or image.

Under the Hover option:

  • Image: If you choose the image option it will open up the following options:
    • Image: Choose an image from the media library or upload your own.
    • Image Size: Select image size between Thumbnail, Medium, Large, or Full.
  • Position: Select the position of the 10 different options.
  • Attachment: Specify the fixed or scroll background image relation with the rest of the browser screen.
  • Repeat: Select an option to set sets how background images are repeated.
  • Display Size: Select a display size from four different options.
  • Transition Duration: Use the slider to adjust the background transition from Normal to hover state.

Border: #

  • Border: Under this setting option, you will get border setting options like width, style, and color.
  • Border Radius: Set the roundness of the border by entering a value.
  • Box Shadow: Get all the settings like color, horizontal/vertical, blur, spread, and more to give shadow effects to the border. 

Under the Hover Option:

  • Transition Duration: You can add a value manually or use the slider to set the time for changing the border design on the hover state.

Visibility: #

The visibility module allows you to control the display of block designs depending on the device type. There will be three device options (Desktop, Tablet, Mobile) with a toggle button. Turn on the toggle button to hide the block design of that device.

However, you can still see it in the editor view.

Advanced: #

  • Block Name: Give a name to identify this block uniquely while linking or scripting to style the block.
  • HTML Anchor:  Add a URL to link a website page.
  • Additional CSS Classes: Assign additional CSS Classes to the block which will let you style the block as you wish with custom CSS. 

NB: You can add multiple classes separately with spaces.

That’s it. We hope this guide helped you learn how to add accordion design to a WordPress website.

What are your feelings
Updated on March 4, 2024