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

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 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://zh-hk.wordpress.org/plugins/toggles/#description)
 * [評價](https://zh-hk.wordpress.org/plugins/toggles/#reviews)
 * [開發](https://zh-hk.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.

## Blocks

This plugin provides 1 block.

 *     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 reply

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 reply

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.

## 其它

 *  Version **1.1.1**
 *  Last updated **2 年之前**
 *  Active installations **2,000+**
 *  WordPress version ** 6.4 or higher **
 *  Tested up to **6.6.5**
 *  PHP version ** 5.6 or higher **
 *  Languages
 * [English (US)](https://wordpress.org/plugins/toggles/) 及 [Swedish](https://sv.wordpress.org/plugins/toggles/).
 *  [翻譯成你的語言](https://translate.wordpress.org/projects/wp-plugins/toggles)
 * Tags
 * [Accordion](https://zh-hk.wordpress.org/plugins/tags/accordion/)[block](https://zh-hk.wordpress.org/plugins/tags/block/)
   [blocks](https://zh-hk.wordpress.org/plugins/tags/blocks/)[details](https://zh-hk.wordpress.org/plugins/tags/details/)
   [faq](https://zh-hk.wordpress.org/plugins/tags/faq/)
 *  [進階顯示](https://zh-hk.wordpress.org/plugins/toggles/advanced/)

## 評分

 5 out of 5 stars.

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

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

[See all reviews](https://wordpress.org/support/plugin/toggles/reviews/)

## 貢獻者

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

## 支援

有話想說？需要協助？

 [檢視支援論壇](https://wordpress.org/support/plugin/toggles/)