| 开发者 | jonashjalmarsson |
|---|---|
| 更新时间 | 2026年5月4日 05:05 |
| 捐献地址: | 去捐款 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 6.9 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
<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.
/simple-expand/ to the /wp-content/plugins/ directory.[expand] shortcodes in your posts or pages.Yes. The shortcode renders inside any paragraph or shortcode block.
Yes. Add your own CSS targeting details.jhse-expand (or pass class="my-class" to the shortcode and target that).
License header to plugin file (wp.org Plugin Check requirement).ABSPATH check).wp_register_style() call..expand to .jhse-expand. If you have custom CSS targeting .expand, update it to .jhse-expand.[expand class="my-class"].wp_add_inline_style instead of inline style tag.