跳到内容

Toggle Anything

v1.0.0

nickpagz · 2024年10月1日 上架

A customizable toggle switch used to control visibility of other blocks on the page.

正在使用
10+
评分
暂无
累计下载
1,156
最近更新
2024年10月2日
需要 WordPress 6.5+已测试到 6.6.12PHP 7.4+

贡献者

截图

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
Optional text settings
Optional text settings
Various styling options
Various styling options
Setting the show/hide classes on other blocks
Setting the show/hide classes on other blocks
Pricing page example
Pricing page example

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.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums