Title: Toggles
Author: George Mamadashvili
Published: <strong>2021 年 2 月 8 日</strong>
Last modified: 2024 年 7 月 16 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/toggles/assets/icon.svg?rev=2927357)

# Toggles

 作者：[George Mamadashvili](https://profiles.wordpress.org/mamaduka/)

[下载](https://downloads.wordpress.org/plugin/toggles.1.1.1.zip)

 * [详情](https://cn.wordpress.org/plugins/toggles/#description)
 * [评价](https://cn.wordpress.org/plugins/toggles/#reviews)
 * [开发进展](https://cn.wordpress.org/plugins/toggles/#developers)

 [支持](https://wordpress.org/support/plugin/toggles/)

## 描述

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.

## 屏幕截图

 * [[
 * The block with no styles.
 * [[
 * The block with custom styling.
 * [[
 * Block Editor.

## 区块

该插件提供了 1 个区块.

 *     Toggles An easy way to hide and reveal content.

## 常见问题

### 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](https://github.com/Mamaduka/toggles) repo.

## 评价

![](https://secure.gravatar.com/avatar/614e748ad1c9a86eb6e147daae4682c65c5519fa61d87e3a9911257f139ea2a0?
s=60&d=retro&r=g)

### 󠀁[Perfect](https://wordpress.org/support/topic/perfect-10645/)󠁿

 [pegelzwo](https://profiles.wordpress.org/pegelzwo/) 2025 年 1 月 23 日

The plugin is perfect. However, I would still like to be able to make a few design
changes within the shortcode. But that’s complaining on a high level! And it works
great with version 6.7.1!

![](https://secure.gravatar.com/avatar/1eefc26e48ce61220530a5e023647072346869be85acf3fb59907cddb8fe023c?
s=60&d=retro&r=g)

### 󠀁[Small, easily customizable, reliable – beautiful!](https://wordpress.org/support/topic/small-easily-customizable-reliable-beautiful/)󠁿

 [Schroedingers Cat](https://profiles.wordpress.org/schroedingers-cat/) 2024 年 
6 月 2 日

Thank you for this handy little plug-in. Works like a charm!

![](https://secure.gravatar.com/avatar/30efc797ecc85791332433a8913f24b053d3b16811ac57f6081d56e641e670f1?
s=60&d=retro&r=g)

### 󠀁[It can be even better](https://wordpress.org/support/topic/it-can-be-even-better-2/)󠁿

 [Vladimir Bender](https://profiles.wordpress.org/vovastik/) 2024 年 4 月 26 日

A wonderful, much needed block.It can be even better if you use the toggle-off /
toggle-on icon, because everyone is used to such a switch on smartphones.And make
the title styled like a link, for example blue and underlined (so that users understand
that the title is clickable).

![](https://secure.gravatar.com/avatar/88ed074d50cf849378fd0373c8ef683a367399dc65205e58f93b6c802155af52?
s=60&d=retro&r=g)

### 󠀁[Really awesome!](https://wordpress.org/support/topic/really-awesome-98/)󠁿

 [chris4element](https://profiles.wordpress.org/chris4element/) 2023 年 8 月 11 
日

A simple, clean solution for Toggles everything! It increases creativity in content
design by 377%! No, really, simple does not mean boring! A basic tool to rethink
design without installing bloated graphics plugins.I feel lucky I found it. Many
thanks!

![](https://secure.gravatar.com/avatar/fb1c760ce8d40ebdf6ac9cd8ff18af4823d2818570b3faf93fb16a4683a7acca?
s=60&d=retro&r=g)

### 󠀁[So easy and effective](https://wordpress.org/support/topic/so-easy-and-effective-7/)󠁿

 [alexedgar](https://profiles.wordpress.org/alexedgar/) 2023 年 3 月 4 日 1 回复

You know how you spend 3 days installing and uninstalling plugin after plugin trying
to do the simplest task? Changing themes, chasing promises, getting befuddled, exhausted,
frustrated and disappointed. Well that is my story with toggles until I found this
gem. Looks great, works great, saves time and effort. Reliable and covers all the
essential bases. Love it! 10 stars! Thank you!!!

![](https://secure.gravatar.com/avatar/fcc45b8336bcf44c3747faee1e70be16293c7aa5827bba749a9ff3fe9d9b7e69?
s=60&d=retro&r=g)

### 󠀁[Fast and simple](https://wordpress.org/support/topic/fast-and-simple-58/)󠁿

 [sanuk](https://profiles.wordpress.org/sanuk/) 2022 年 10 月 30 日 1 回复

Awesome plugin. I use it to add simple, minimalistic toggles that show/hide additional
info on my site. Thank you!

 [ 阅读所有7条评价 ](https://wordpress.org/support/plugin/toggles/reviews/)

## 贡献者及开发者

「Toggles」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ George Mamadashvili ](https://profiles.wordpress.org/mamaduka/)

「Toggles」插件已被翻译至 1 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/toggles/contributors)
为本插件所做的贡献。

[帮助将「Toggles」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/toggles)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/toggles/)，查看[SVN仓库](https://plugins.svn.wordpress.org/toggles/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/toggles/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/toggles/)。

## 更新日志

#### 1.1.1 – 2024-07-16

 * Bumped minimum required WordPress version to 6.4.

#### 1.1.0 – 2023-06-17

 * Bumped minimum required WordPress version to 6.1.
 * Fixes an error when selecting deeply nested inner blocks.
 * Block support enhancements.

#### 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.

## 额外信息

 *  版本 **1.1.1**
 *  最后更新：**2 年前**
 *  活跃安装数量 **2,000+**
 *  WordPress 版本 ** 6.4 或更高版本 **
 *  已测试的最高版本为 **6.6.5**
 *  PHP 版本 ** 5.6 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/toggles/) 和 [Swedish](https://sv.wordpress.org/plugins/toggles/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/toggles)
 * 标签
 * [Accordion](https://cn.wordpress.org/plugins/tags/accordion/)[block](https://cn.wordpress.org/plugins/tags/block/)
   [blocks](https://cn.wordpress.org/plugins/tags/blocks/)[details](https://cn.wordpress.org/plugins/tags/details/)
   [faq](https://cn.wordpress.org/plugins/tags/faq/)
 *  [高级视图](https://cn.wordpress.org/plugins/toggles/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  7 条 5 星评价     ](https://wordpress.org/support/plugin/toggles/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/toggles/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/toggles/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/toggles/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/toggles/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/toggles/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/toggles/reviews/)

## 贡献者

 *   [ George Mamadashvili ](https://profiles.wordpress.org/mamaduka/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/toggles/)