How to set close or open specific Accordion Item in WordPress?

Updated on February 8, 2023 by Ananda

Table of Contents

Accordion items can be a valuable tool in any WordPress website, providing a structure and organization that makes content easy to navigate. Whether you’re trying to create a FAQ page or break up complex topics into more digestible sections, the accordion item is a great way to make your information easily accessible.

But what if you want any specific accordion item to be active on the page load?

To check the complete feature overview documentation of The Plus Blocks for Gutenberg Accordion block, click here.

Requirement  – This block is a part of The Plus Blocks for Gutenberg, make sure its installed & activated to enjoy all its powers.

By default, the first item of an accordion is always active, but with The Plus Blocks for Gutenberg Accordion block, you can change that.

You can set a specific accordion item to be active or you can keep all accordions close by default.

To do so, add the accordion block to the page and go to Extra Option > Default Active Tab, from the dropdown, you can choose 0 to keep all accordion items close by default or choose any other accordion item number you want to keep as active by default.

accordion active tab
default active accordion preview

Also check, How to open Accordion Tabs on hover in WordPress.