This plugin is outdated and might not be supported anymore
Show / Hide Section Block

Show / Hide Section Block

Details
View on WordPress

Show / Hide Section Block provides two blocks: a Show / Hide Group block that is populated with one or more Show / Hide Section blocks.

The HTML output for an individual section is:

<!-- Each section block has a details element. -->
<details>
    <!-- Each details element has a summary and additional, collapsible content. -->
    <summary>Summary text</summary>
    <!-- Additional inner blocks of any type are populated here. -->
</details>

The HTML output for the group is:

<div>
    <details>
        <summary></summary>
        <!-- Additional blocks to be shown/hidden -->
    </details>
    <details>
        <summary></summary>
        <!-- Additional blocks to be shown hidden -->
    </details>
    <!-- Additional section blocks -->
</div>

An option is provided in the block’s side panel to toggle an “Open all”/”Close all” button. If this is toggled on for a block, an additional <button> element will be inserted and JavaScript will be used on the front-end to control the show/hide behavior of all <details> elements in the group at once.

If the toggle is off, no JavaScript is loaded on the front end.

Details

Plugin code:
show-hide-section-block
Plugin version:
2.0.3
Outdated:
Yes
WP version:
6.1 or higher
PHP version:
7.4 or higher
Test up to WP version:
6.2.6
Total installations:
90
Last updated:
2023-04-28
Rating:
Times rated:
1
collapsible
details
summary