Toggle Content Block

描述

The Toggle Content Block lets you create two separate sections – “Left Content” and “Right Content” – and switch between them instantly.
Perfect for before/after comparisons, feature toggles, multi-step content, monthly-annual plans, or simply organizing content in an interactive way.

Features:
– Preloads both “Left Content” and “Right Content” blocks by default.
– Allows any type of inner blocks inside each section.
– Customizable labels for the toggle switch.
– Flexible styling and responsive design.

GitHub Repo

https://github.com/BhargavBhandari90/toggle-content-block

屏幕截图

区块

该插件提供了 3 个区块.

  • Toggle Content A block with a customizable toggle switch and two content areas.
  • Left Content A block to add content to the left of the toggle switch.
  • Right Content A block to add content to the right of the toggle switch.

安装

  1. Upload the plugin files to the /wp-content/plugins/toggle-content-block directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress.
  3. Add/Edit a post or page and search “Toggle Content” while searching for a block.
  4. Customize the Left and Right sections with any blocks you want.

评价

2026 年 8 月 14 日 1 回复
This is a handy block when you want to show difference between content like monthly/yearly price, after/before effect. I like that you can customize the toggle text and add regular blocks inside the content area. It's straightforward and does what it's supposed to do without making things complicated.
阅读所有2条评价

贡献者及开发者

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

贡献者

更新日志

1.0.0

  • Initial Release