Title: Simple Expand &#8211; Lightweight Read more toggle
Author: Jonas Hjalmarsson
Published: <strong>2022 年 2 月 10 日</strong>
Last modified: 2026 年 5 月 3 日

---

搜索插件

![](https://ps.w.org/simple-expand/assets/banner-772x250.png?rev=3521773)

![](https://ps.w.org/simple-expand/assets/icon-256x256.png?rev=3521773)

# Simple Expand – Lightweight Read more toggle

 作者：[Jonas Hjalmarsson](https://profiles.wordpress.org/jonashjalmarsson/)

[下载](https://downloads.wordpress.org/plugin/simple-expand.1.3.zip)

 * [详情](https://cn.wordpress.org/plugins/simple-expand/#description)
 * [评价](https://cn.wordpress.org/plugins/simple-expand/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/simple-expand/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/simple-expand/#developers)

 [支持](https://wordpress.org/support/plugin/simple-expand/)

## 描述

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.

## 屏幕截图

[⌊Closed Simple Expand.⌉⌊Closed Simple Expand.⌉[

Closed Simple Expand.

[⌊Open Simple Expand with HTML inside.⌉⌊Open Simple Expand with HTML inside.⌉[

Open Simple Expand with HTML inside.

## 安装

 1. Upload `/simple-expand/` to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the Plugins menu in WordPress.
 3. Place `[expand]` shortcodes in your posts or pages.

## 常见问题

### Does this work in the block editor?

Yes. The shortcode renders inside any paragraph or shortcode block.

### Can I style it myself?

Yes. Add your own CSS targeting `details.jhse-expand` (or pass `class="my-class"`
to the shortcode and target that).

## 评价

此插件暂无评价。

## 贡献者及开发者

「Simple Expand – Lightweight Read more toggle」是开源软件。 以下人员对此插件做出
了贡献。

贡献者

 *   [ Jonas Hjalmarsson ](https://profiles.wordpress.org/jonashjalmarsson/)

「Simple Expand – Lightweight Read more toggle」插件已被翻译至 5 种本地化语言。 
感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/simple-expand/contributors)
为本插件所做的贡献。

[帮助将「Simple Expand – Lightweight Read more toggle」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/simple-expand)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/simple-expand/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/simple-expand/)，或通过[RSS](https://plugins.trac.wordpress.org/log/simple-expand/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/simple-expand/)。

## 更新日志

#### 1.3

 * Added `License` header to plugin file (wp.org Plugin Check requirement).
 * Added direct file access protection (`ABSPATH` check).
 * Added explicit version to `wp_register_style()` call.
 * Tested up to WordPress 6.9.

#### 1.2

 * **Breaking:** CSS class changed from `.expand` to `.jhse-expand`. If you have
   custom CSS targeting `.expand`, update it to `.jhse-expand`.
 * Custom CSS class support via `[expand class="my-class"]`.
 * Use `wp_add_inline_style` instead of inline style tag.
 * Removed duplicate iframe attributes.
 * Fixed Plugin URI.
 * Tested up to WordPress 6.7.
 * Updated minimum PHP requirement to 7.4.

#### 1.1

 * Added support for YouTube and other iframe embeds inside expand tag (also WP 
   built in embeds).

#### 1.0.1

 * Added support for shortcode in expand tag.

#### 1.0

 * Initial release.

## 额外信息

 *  版本 **1.3**
 *  最后更新：**1 月前**
 *  活跃安装数量 **60+**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **6.9.4**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/simple-expand/) 、 [Spanish (Chile)](https://cl.wordpress.org/plugins/simple-expand/)、
   [Spanish (Colombia)](https://es-co.wordpress.org/plugins/simple-expand/) 、 [Spanish (Ecuador)](https://es-ec.wordpress.org/plugins/simple-expand/)、
   [Spanish (Spain)](https://es.wordpress.org/plugins/simple-expand/) 和 [Spanish (Venezuela)](https://ve.wordpress.org/plugins/simple-expand/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/simple-expand)
 * 标签
 * [details](https://cn.wordpress.org/plugins/tags/details/)[expand](https://cn.wordpress.org/plugins/tags/expand/)
   [readmore](https://cn.wordpress.org/plugins/tags/readmore/)[shortcode](https://cn.wordpress.org/plugins/tags/shortcode/)
   [toggle](https://cn.wordpress.org/plugins/tags/toggle/)
 *  [高级视图](https://cn.wordpress.org/plugins/simple-expand/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/simple-expand/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/simple-expand/reviews/)

## 贡献者

 *   [ Jonas Hjalmarsson ](https://profiles.wordpress.org/jonashjalmarsson/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/simple-expand/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://jonashjalmarsson.se/help-me-out/)