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://tw.wordpress.org/plugins/simple-expand/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/simple-expand/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/simple-expand/#installation)
 * [開發資訊](https://tw.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**
 *  最後更新 **3 個月前**
 *  啟用安裝數 **50+**
 *  WordPress 版本需求 ** 5.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.9.5**
 *  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://tw.wordpress.org/plugins/tags/details/)[expand](https://tw.wordpress.org/plugins/tags/expand/)
   [readmore](https://tw.wordpress.org/plugins/tags/readmore/)[shortcode](https://tw.wordpress.org/plugins/tags/shortcode/)
   [toggle](https://tw.wordpress.org/plugins/tags/toggle/)
 *  [進階檢視](https://tw.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/)