Title: CodePen Embed Block
Author: Chris Coyier
Published: <strong>2020 年 1 月 17 日</strong>
Last modified: 2025 年 7 月 1 日

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://ps.w.org/codepen-embed-block/assets/icon-256x256.jpg?rev=2471014)

# CodePen Embed Block

 由 [Chris Coyier](https://profiles.wordpress.org/chriscoyier/) 開發

[下載](https://downloads.wordpress.org/plugin/codepen-embed-block.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/codepen-embed-block/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/codepen-embed-block/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/codepen-embed-block/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/codepen-embed-block/#developers)

 [技術支援](https://wordpress.org/support/plugin/codepen-embed-block/)

## 外掛說明

[CodePen](https://codepen.io) is an online code editor for front-end development.
You build things (we call them Pens) with HTML, CSS, and JavaScript, and the languages
and libraries that go along with those. Any Pen can be embedded on another site,
making them useful for blog posts, documentation, forums, etc.

This block makes it easy to embed them. While oEmbed (just paste in a Pen URL!) 
also works for CodePen embeds in the block editor, this plugin allows for much more
control, like setting the the height, theme, and default tabs.

## 螢幕擷圖

 * [[
 * Adding a CodePen Embed block.
 * [[
 * The block with all the options.

## 適用於區塊編輯器

這個外掛提供 1 個可供 Gutenberg/區塊編輯器使用的區塊。

 *   CodePen Embed Embeds CodePen pens

## 安裝方式

從 WordPress 外掛目錄進行安裝。

## 常見問題集

### Why is this useful?

It’s helpful for embedding Pens you build (or others have built) on CodePen on your
own WordPress site.

## 使用者評論

![](https://secure.gravatar.com/avatar/d1a79b946f31874fa60f2b234b9ac8add41a2049281523e8a96698354406f8e6?
s=60&d=retro&r=g)

### 󠀁[Super for custom code embeds](https://wordpress.org/support/topic/super-for-custom-code-embeds/)󠁿

 [Deniss](https://profiles.wordpress.org/cms24/) 2022 年 5 月 4 日

Good module for custom code embeds from CodePen.

![](https://secure.gravatar.com/avatar/3d03ea1bfb9ecee0ee6ec90857c2e62be4dbc83d9e2f9e1ee24618e9dde6a3bb?
s=60&d=retro&r=g)

### 󠀁[Great tutorial tool](https://wordpress.org/support/topic/great-tutorial-tool/)󠁿

 [Georgi Popov](https://profiles.wordpress.org/magadanski_uchen/) 2022 年 1 月 20
日

I write web development tutorials in my blog and have tried many syntax highlighter
options for code snippets in the past. I recently decided to give Codepen a try 
and this plugin is surely the best way to embed and configure those!

 [ 閱讀全部 2 則使用者評論 ](https://wordpress.org/support/plugin/codepen-embed-block/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈CodePen Embed Block〉的開發相關工作。

參與者

 *   [ Chris Coyier ](https://profiles.wordpress.org/chriscoyier/)
 *   [ Andrew Taylor ](https://profiles.wordpress.org/andrewtaylor-1/)

〈CodePen Embed Block〉外掛目前已有 2 個本地化語言版本。 感謝[全部譯者](https://translate.wordpress.org/projects/wp-plugins/codepen-embed-block/contributors)
為這個外掛做出的貢獻。

[將〈CodePen Embed Block〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/codepen-embed-block)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/codepen-embed-block/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/codepen-embed-block/)，或透過
[RSS](https://plugins.trac.wordpress.org/log/codepen-embed-block/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/codepen-embed-block/)。

## 變更記錄

#### 1.0

 * Initial release

#### 1.0.2

 * Added editable option

#### 1.0.3

 * Tested up to WordPress 6.3.1

#### 1.1.0

 * Added new setting for default theme ID

#### 1.2.0

 * Rewritten using @wordpress/blocks builder
 * Update RegEx to support 2.0 editor URLs

## 中繼資料

 *  版本 **1.2.0**
 *  最後更新 **11 個月前**
 *  啟用安裝數 **700+**
 *  WordPress 版本需求 ** 5.1 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.7.5**
 *  PHP 版本需求 ** 7.2 或更新版本 **
 *  語言
 * [Chinese (Taiwan)](https://tw.wordpress.org/plugins/codepen-embed-block/)、[English (US)](https://wordpress.org/plugins/codepen-embed-block/)、
   及 [French (France)](https://fr.wordpress.org/plugins/codepen-embed-block/).
 *  [將這個外掛本地化為你的母語版本](https://translate.wordpress.org/projects/wp-plugins/codepen-embed-block)
 * 標籤:
 * [code](https://tw.wordpress.org/plugins/tags/code/)[codepen](https://tw.wordpress.org/plugins/tags/codepen/)
   [embed](https://tw.wordpress.org/plugins/tags/embed/)[gutenberg](https://tw.wordpress.org/plugins/tags/gutenberg/)
 *  [進階檢視](https://tw.wordpress.org/plugins/codepen-embed-block/advanced/)

## 評分

 5 星，滿分為 5 星

 *  [  2 個 5 星使用者評論     ](https://wordpress.org/support/plugin/codepen-embed-block/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/codepen-embed-block/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/codepen-embed-block/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/codepen-embed-block/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/codepen-embed-block/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/codepen-embed-block/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/codepen-embed-block/reviews/)

## 參與者

 *   [ Chris Coyier ](https://profiles.wordpress.org/chriscoyier/)
 *   [ Andrew Taylor ](https://profiles.wordpress.org/andrewtaylor-1/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/codepen-embed-block/)