Description
This plugin enhances the editing experience in the WordPress Classic Editor by enabling accordion-style behavior for H2 and H3 headings while editing content.
Unlike frontend accordion plugins that affect published pages, this plugin works only inside the WordPress admin area. It helps authors organize, navigate, and preview hierarchical content more efficiently when editing long articles, documentation, or other structured content.
The plugin does not modify or inject any behavior into the frontend. Published content remains completely unchanged.
No external libraries are required.
Features
- Accordion-style behavior for H2 headings
- Nested accordion behavior for H3 headings within H2 sections
- Improves readability and navigation when editing long content
- Works only with the WordPress Classic Editor
- Lightweight implementation using vanilla JavaScript
- No external dependencies
- Does not affect frontend rendering
- Compatible with frontend accordion plugins
Scope
This plugin works only in the WordPress admin area.
It does not modify or inject any behavior into the public-facing website.
Important Notes
When an H2 or H3 section is collapsed, deleting its heading will also remove all content contained within that collapsed section.
If you want to delete only the heading itself, first expand the section completely, then remove only the heading.
To avoid accidental data loss, always make sure the section is expanded before deleting an H2 or H3 heading.
Installation
- Upload the plugin folder to
/wp-content/plugins/ - Activate the plugin from the WordPress admin dashboard
- Open a post or page using the Classic Editor
- Use H2 and H3 headings and click them to expand or collapse sections while editing
FAQ
-
Does this affect the public website?
-
No. This plugin only works inside the WordPress Classic Editor and does not change frontend rendering.
-
Does it work with Gutenberg?
-
No. It is designed specifically for the Classic Editor.
-
Does it require jQuery or external libraries?
-
No. It uses plain (vanilla) JavaScript.
-
Can this be used together with frontend accordion plugins?
-
Yes. Since this plugin only affects the editor, it does not conflict with frontend accordion implementations.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“Wareko Header Auto Accordion Admin” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “Wareko Header Auto Accordion Admin” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
3.0.0
- Renamed internal plugin files.
- No functional changes.
2.0.0
- Initial release.
- Added accordion behavior for H2 headings inside the Classic Editor.
- Added nested accordion behavior for H3 headings.
- Editor-only functionality with no frontend impact.
- Lightweight implementation with no external dependencies.