Toggles

Lýsing

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 <details> and <summary> HTML elements and doesn’t require any additional JavaScript or CSS on the theme side.

Skjámyndir

  • The block with no styles.
  • The block with custom styling.
  • Block Editor.

Blocks

This plugin provides 1 block.

  • Toggles An easy way to hide and reveal content.

SOS

Want to change default styles?

You can add some basic styling with just a few lines of CSS. Example:

.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;
}

Want to report a bug?

Create an issue at the Mamaduka/toggles repo.

Umsagnir

30. október, 2022 1 reply
Awesome plugin. I use it to add simple, minimalistic toggles that show/hide additional info on my site. Thank you!
Skoða 2 umsagnir

Þátttakendur & höfundar

“Toggles” er opinn hugbúnaður. Eftirfarandi aðilar hafa lagt sitt af mörkum við smíði þessarar viðbótar.

Höfundar

Translate “Toggles” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Breytingarsaga

1.0.1 – 2022-02-14

  • Bumped minimum required WordPress version to 5.8.
  • Pass component to renderAppender.

1.0.0 – 2021-02-05

  • Initial release.