Title: Toggle Anything
Author: nickpagz
Published: <strong>2024 年 10 月 1 日</strong>
Last modified: 2024 年 10 月 1 日

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://ps.w.org/toggle-anything/assets/icon.svg?rev=3161130)

# Toggle Anything

 由 [nickpagz](https://profiles.wordpress.org/npagazani/) 開發

[下載](https://downloads.wordpress.org/plugin/toggle-anything.1.0.0.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/toggle-anything/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/toggle-anything/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/toggle-anything/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/toggle-anything/#developers)

 [技術支援](https://wordpress.org/support/plugin/toggle-anything/)

## 外掛說明

The Toggle Anything block allows you to control visibility of other blocks on the
page via user interaction.
 A common example is a pricing page where a user can 
toggle between monthly vs yearly subscription pricing. With this plugin allows you
to design your own pricing tables using core blocks, then control the which items
are visible or hidden when the switch is toggled.

### Features

 * Toggle visibility of any element on the page. Does not need to be a nested block.
 * Set a default toggle state.
 * Choose your own “On” and “Off” state class names.
 * Non-Javascript friendly. Default state content displays, toggle is hidden.
 * Additional classes to show or hide other related components on non-Javascript
   browsers.
 * Multiple toggles allowed on the same page.
 * Multiple design configurations for each toggle.
 * Option for adding text in on/off positions.
 * Easy Custom CSS additions for each toggle/switch component.

## 螢幕擷圖

[⌊General block view and settings⌉⌊General block view and settings⌉[

General block view and settings

[⌊Basic toggle settings for classes and default state⌉⌊Basic toggle settings for
classes and default state⌉[

Basic toggle settings for classes and default state

[⌊Optional text settings⌉⌊Optional text settings⌉[

Optional text settings

[⌊Various styling options⌉⌊Various styling options⌉[

Various styling options

[⌊Setting the show/hide classes on other blocks⌉⌊Setting the show/hide classes on
other blocks⌉[

Setting the show/hide classes on other blocks

[⌊Pricing page example⌉⌊Pricing page example⌉[

Pricing page example

## 適用於區塊編輯器

這個外掛提供 1 個可供 Gutenberg/區塊編輯器使用的區塊。

 *   Toggle Anything A customizable toggle switch to control visibility of any block.

## 安裝方式

Use the standard WordPress plugins installation page and install or upload the plugin.
After plugin activation the block “Toggle Anything” will be visible in the editor.

## 常見問題集

### Can I add multiple blocks to the same page?

Yes.

### Are the block styles customizable?

Yes.

### What about non-Javascript enabled browsers?

We’ve got you covered there too. The toggle will automatically be hidden, and the
default toggle class will be displayed.
 The block also includes other “no-JS” classes
you can use for hiding/showing content.

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈Toggle Anything〉的開發相關工作。

參與者

 *   [ nickpagz ](https://profiles.wordpress.org/npagazani/)

[將〈Toggle Anything〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/toggle-anything)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/toggle-anything/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/toggle-anything/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/toggle-anything/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/toggle-anything/)。

## 變更記錄

#### 1.0.0

 * Add selector components for making classes easier to add
 * Use HTML Tag processor API for adding classes on rendered page
 * Reduce whitespace in inline css in the save markup
 * Conditionally add inline css selectors

#### 0.2.1

 * Tweak no-js functionality

#### 0.2.0

 * Option for display type (block, flex, etc)
 * Default switch position on page load
 * No JavaScript page load fallback

#### 0.1.0

 * Release

## 中繼資料

 *  版本 **1.0.0**
 *  最後更新 **2 年前**
 *  啟用安裝數 **20+**
 *  WordPress 版本需求 ** 6.5 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.6.5**
 *  PHP 版本需求 ** 7.4 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/toggle-anything/)
 * 標籤:
 * [block](https://tw.wordpress.org/plugins/tags/block/)[hide](https://tw.wordpress.org/plugins/tags/hide/)
   [switch](https://tw.wordpress.org/plugins/tags/switch/)[toggle](https://tw.wordpress.org/plugins/tags/toggle/)
 *  [進階檢視](https://tw.wordpress.org/plugins/toggle-anything/advanced/)

## 評分

這個項目尚無任何評論記錄。

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

[查看全部使用者評論](https://wordpress.org/support/plugin/toggle-anything/reviews/)

## 參與者

 *   [ nickpagz ](https://profiles.wordpress.org/npagazani/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/toggle-anything/)