Show / Hide Section Block
Display an accessible show/hide interface with details and summary elements.
Plugin info
Maintenance & Compatibility
Maintenance score
Stale • Last updated 237 days ago • 1 reviews
Is Show / Hide Section Block abandoned?
Likely maintained (last update 237 days ago).
Compatibility
Languages
Similar & Alternatives
Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.
Description
Show / Hide Section Block provides four blocks that are used to display a group of elements that each contain a and an arbitrary number of additional blocks.
- The Show Hide Group block is a wrapping .
- The Show Hide Section block is a wrapping
. One or more of these blocks is added to a Show Hide Group block.- The Show Hide Summary block contains the content for a
tag. One of these blocks is inside each Show Hide Section block.- The Show Hide Details block contains arbitrary content. One of these blocks is added inside each Show Hide Section block.
The HTML output for an individual section is:
The HTML output for the group is:
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
element will be inserted and JavaScript will be used on the front-end to control the show/hide behavior of allelements in the group at once.If the toggle is off, no JavaScript is loaded on the front end and only the browser’s default behavior is used for opening and closing
elements. - The Show Hide Section block is a wrapping
Installation
Frequently Asked Questions
Review feed
Screenshots
Changelog
3.1.0
- Automatically open an associated
<details>element when its anchor is used in a URL. - Update dependencies.
- Confirm compatibility with WordPress 6.8.
- Confirm license in plugin header.
3.0.0
- Refactor block markup to improve editorial experience and formatting options.
- Introduce
happyprime/show-hide-summaryblock to manage<summary>content. - Introduce
happyprime/show-hide-detailsblock to manage remaningin<details>content. - Upgrade
happyprime/show-hide-groupandhappyprime/show-hide-sectionblocks to API v3. - Add a deprecation routine to transform 2.0.x block markup into the new format.
- Replace
@wordpress/scriptswith slimmer build configuration. - Bump minimum WordPress version to 6.4; confirm compatibility with 6.7.
2.0.3
- Fix an issue where the front-end script was enqueued twice.
2.0.2
- Fix an issue preventing Open All toggle from working in Chrome.
- Update
@wordpress/scriptsdependency to 26.3.0. - Improve block organization, use of
block.json.
2.0.1
- Add a variety of
supportsoptions toblock.jsonso that core styles can be applied as expected. - Improve asset loading so that the front-end script is only enqueued when the block is in use and when the the open/close all option is selected.
- Add languages directory, POT file for translations.
2.0.0
Initial public release.