https://github.com/mamaduka/toggles
An easy way to hide and reveal content.
https://github.com/mamaduka/toggles
block wordpress-plugin
Last synced: 5 months ago
JSON representation
An easy way to hide and reveal content.
- Host: GitHub
- URL: https://github.com/mamaduka/toggles
- Owner: Mamaduka
- License: gpl-2.0
- Created: 2020-06-11T06:29:48.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-07-16T10:56:38.000Z (over 1 year ago)
- Last Synced: 2025-05-06T06:53:43.710Z (5 months ago)
- Topics: block, wordpress-plugin
- Language: JavaScript
- Homepage: https://wordpress.org/plugins/toggles/
- Size: 997 KB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Toggles
An easy way to hide and reveal content.
You can use this block to hide and reveal content as needed. Create FAQ pages, hide spoilers in posts, or create simple accordion elements.
The block uses `` and `` HTML elements and doesn't require any additional JavaScript or CSS on the theme side.
## Frequently Asked Questions ##
Want to change default styles?
You can add some basic styling with just a few lines of CSS. Example:
```CSS
.wp-block-toggles {
background: #fafafa;
border: 1px solid #eaeaea;
border-radius: 3px;
margin: 1.5rem 0;
padding: 0.5rem 1rem;
}.wp-block-toggles summary {
cursor: pointer;
}
```