跳到内容

Collapse It – Show More/Less Expand Button

v1.0.0

Filippo Maniero · 2025年9月1日 上架

A Gutenberg block to collapse/expand content with fade effect, customizable height, and auto-hide when empty.

正在使用
50+
评分
暂无
累计下载
2,165
最近更新
2025年9月4日
需要 WordPress 5.8+已测试到 6.8.13

截图

Collapsed content on the frontend
Collapsed content on the frontend
Expanded content on the frontend
Expanded content on the frontend
Finding Collapse it block
Finding Collapse it block
Block settings in the editor
Block settings in the editor
Style settings in the editor
Style settings in the editor

Collapse It is a modern Gutenberg block that allows you to collapse or expand any content area with a smooth fade effect and a customizable “Show More / Show Less” button. The block is highly flexible, letting you set the collapsed height, button styles, and texts. It also features smart empty-content detection: if the block is empty (even if it contains an empty shortcode block), it will automatically hide itself, keeping your pages clean and professional.

Key Features:
* Collapse/expand any content with a fade effect
* Automatically hides when empty (even with empty shortcode or any dynamic blocks)
* Customizable collapsed height
* Fully customizable Show More / Show Less button (text, color, alignment, border radius, font size, padding)
* Gutenberg block editor support
* No tracking, no ads, no bloat
* 100% WordPress Coding Standards compliant
* Developer: Dashboard Team

Usage

  1. Insert the “Show More (Collapse)” block in the editor.
  2. Add any content (text, images, blocks, or even shortcodes) inside the block.
  3. Adjust the collapsed height and button styles from the block settings panel.
  4. The block will automatically hide itself if left empty (including empty shortcode blocks).

License

This plugin is licensed under the GPLv2 or later. See https://www.gnu.org/licenses/gpl-2.0.html

Plums

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

导航

说明

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

© 2026 Plums