---
title: "How to set close or open specific Accordion Item in WordPress?"
url: https://nexterwp.com/docs/openclose-wordpress-accordion-bydefault/
date: 2023-02-08
modified: 2026-05-16
author: "Aditya Sharma"
description: "Do you want to control which accordion item opens when the page loads? The Accordion block in Nexter Blocks for Gutenberg lets you set a specific item to open by..."
image: https://nexterwp.com/wp-content/uploads/2024/05/openclose-wordpress-accordion-bydefault-1024x519.jpg
word_count: 269
---

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

## Key Takeaways

- Nexter Blocks Accordion block sets the first accordion item active on page load by default, and Extra Option > Default Active Tab changes that behavior.
- Default Active Tab lets a user select 0 to keep all accordion items closed or choose the number of the accordion item to open on page load.
- FAQ pages, product pages, and knowledge base pages use the Accordion block when one item should open by default or when all items start collapsed for a cleaner layout.

Do you want to control which accordion item opens when the page loads? The Accordion block in Nexter Blocks for Gutenberg lets you set a specific item to open by default, or keep all items closed so visitors choose where to start.

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

*To check the complete feature overview documentation of the Nexter Blocks Accordion block, [click here](/docs/accordion-block-settings-overview/).*

**Best Used For:**

- FAQ pages where one item should open by default to highlight the most common question

- Product pages with collapsible feature sections that should all start closed

- Knowledge base pages where all accordion items start collapsed for a cleaner layout

**Requirement** – This block is a part of Nexter Blocks. Make sure it is installed and activated.

[LIVE BLOCK LINK](https://nexterwp.com/nexter-blocks/?from=tpblocks&utm_source=tpag&utm_medium=docs&utm_campaign=text)

By default, the first accordion item is active on page load. With the Nexter Blocks Accordion block, you can change this behavior to suit your content.

Set a specific accordion item to be active on load, or keep all accordion items closed by default so visitors choose which section to expand first.

To change the default state, add the Accordion block to your page and go to **Extra Option** > **Default Active Tab**. From the dropdown, select **0** to keep all accordion items closed by default, or select the number of the accordion item you want open on page load. Use this when you want a specific FAQ answer visible on page load, or when a clean collapsed state better suits your page design.

![](https://nexterwp.com/wp-content/uploads/2023/02/accordion-layout-default-active-tab-new.png)

Also check: [How to open Accordion Tabs on hover in WordPress](https://nexterwp.com/docs/wordpress-accordion-on-hover/).