
Simple Expand – Lightweight Read more toggle
v1.3Jonas Hjalmarsson · 2022年2月10日 上架
Adds an [expand] shortcode that wraps content in a native HTML `` toggle. No JavaScript, no settings page, no bloat.
- 正在使用
- 40+
- 评分
- 暂无
- 累计下载
- 4,431
- 最近更新
- 2026年10月23日
需要 WordPress 5.0+已测试到 7.1.5PHP 7.4+
截图
A single shortcode you can drop into any post, page, or text widget to get a click-to-expand “read more” toggle. The output is a native HTML <details> element styled with a small inline stylesheet — nothing else.
The point is the absence of features. There is no settings page, no animation library, no editor block panel with twelve toggles. If you need a read-more on one paragraph in one post, you do not want a plugin that wants to manage your whole site.
Usage:
[expand title="My title"]
The content goes here.
<img src="even-images-can-go-in-here.jpg" />
And wrap up with a closing expand tag.
[/expand]
Supports a custom CSS class via [expand class="my-class"] and works with WordPress oEmbeds and other shortcodes nested inside.

