Wareko Header Auto Accordion

この記事は約4分で読めます。
スポンサーリンク
スポンサーリンク

Wareko Header Auto Accordion

Automatically converts WordPress H2 and H3 headings into collapsible accordion sections.

Make long posts easier to read with collapsible headings.

About This Plugin

Wareko Header Auto Accordion is a lightweight WordPress plugin that automatically transforms H2 and H3 headings into accordion-style collapsible sections.

It improves readability for long-form content by allowing readers to expand and collapse sections interactively.

The plugin works with both the Gutenberg block editor and the classic editor, and is compatible with most modern WordPress themes.

Features

  • Accordion behavior for H2 headings
  • Nested toggle support for H3 headings
  • Works with Gutenberg block editor
  • Works with classic editor
  • No jQuery required
  • Lightweight vanilla JavaScript implementation
  • No external dependencies
  • Compatible with most WordPress themes

Screenshots

Expanded State

This screenshot shows a typical WordPress post containing H2 and H3 headings.

Users can click headings to expand or collapse sections as needed.

Expanded state showing WordPress headings

Collapsed State

Headings can be collapsed individually or as grouped sections.

Partially collapsed accordion state Fully collapsed accordion state
Partial collapse example Fully collapsed example

This layout helps demonstrate both states clearly in a side-by-side comparison.

Installation

  1. Upload the plugin folder to /wp-content/plugins/
  2. Activate the plugin from the WordPress admin dashboard
  3. Add H2 and H3 headings in your posts or pages

Requirements

  • WordPress 6.0 or later
  • Tested up to WordPress 7.0
  • PHP 7.4 or later recommended

Frequently Asked Questions

Does it work with Gutenberg?

Yes. It works with both the Gutenberg block editor and the classic editor.

Does it require jQuery or external libraries?

No. The plugin is built with lightweight vanilla JavaScript only.

Will it work with my theme?

Yes. It is designed to work with most modern WordPress themes.

Developer

Developed by Wareko.