=== NGT Auto Heading Accordions ===
Contributors: netgreater
Donate link: https://paypal.me/netgreater?locale.x=en_GB&country.x=IN
Tags: accordions, table of contents, headings, UI, collapsible, gutenberg, blocks
Requires at least: 5.8
Tested up to: 6.5
Stable tag: 2.6.0
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Automatically converts selected heading tags into full-width collapsible accordions with dynamic colors and smart page controls. Now includes native Gutenberg blocks!

== Description ==

NGT Auto Heading Accordions is a lightweight and powerful WordPress plugin designed to automatically convert standard post or page headings (H1 through H6) into clean, fully collapsible accordion sections. 

Key features include:
* **Automatic & Manual Modes:** Choose to convert headings on the page automatically, or use Manual mode for granular control.
* **Native Gutenberg Blocks:** Drop in a `Start Accordion` and `Stop Accordion` block directly from your editor to create unlimited, custom accordion zones on a single page!
* **Smart Page Targeting:** Choose exact templates or post types, and easily include or exclude specific pages by ID.
* **Custom Styling Control:** Full color customization for underlines, titles on hover, and animated arrow icons.
* **Interactive Behavior:** Options to keep the first item open by default or auto-close other sections when a new one opens.

== Installation ==

1. Upload the plugin folder to the `/wp-content/plugins/` directory, or upload the zip file directly through the WordPress plugins screen.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Navigate to **Auto Accordions** in your WordPress admin menu to configure your display rules, colors, and behavior preferences.

== Frequently Asked Questions ==

= How do I create an accordion? =
In **Automatic Mode**, the plugin will turn your headings into accordions starting from the very first heading on the page. In **Manual Mode**, you can use the `/Start Accordion` block and `/Stop Accordion` block. Any chosen headings placed between these two blocks will instantly turn into accordions.

= Can I add normal text or images BETWEEN accordions? =
Yes! You can create multiple accordion zones. Drop a `/Stop Accordion` block, add your normal text or images, and then drop a `/Start Accordion` block to begin a completely new accordion section.

= Can I prevent accordions from showing up on my homepage? =
Yes! Go to **Auto Accordions** in your dashboard and enter your homepage ID into the **Exclude from Specific Pages** field.

= Can I choose which heading tags turn into accordions? =
Yes, you can check or uncheck H1 through H6 under the "Headings to Collapse" setting in the plugin dashboard.

== Changelog ==

= 2.6.0 =
* Added native Gutenberg blocks (`Start Accordion` and `Stop Accordion`) for intuitive visual control directly in the editor.
* Added "Automatic" and "Manual" rendering modes in the backend settings.
* Upgraded string parsing engine to support unlimited accordion zones on a single page.
* Deprecated legacy HTML comment shortcodes in favor of the new visual Gutenberg blocks.

= 2.5.3 =
* Added user-friendly labeling and detailed descriptions for Include and Exclude Page ID options.
* Improved conditional page filtering to prevent unwanted global rendering on homepages.

= 2.5.1 =
* Initial public release with dynamic color pickers and responsive accordion layout.