跳到内容

CodePen Embedded Pens Shortcode

v1.0.4

Chris Coyier · 2014年1月6日 上架

Allows the use of a special shortcode [codepen_embed] for embedding Pens from CodePen.

正在使用
700+
评分
4.3 / 5
累计下载
3.5 万
最近更新
2026年11月9日
6 条评价需要 WordPress 5.0+已测试到 7.1.5PHP 7.0+

贡献者

截图

An Embedded Pen
An Embedded Pen
Settings Page
Settings Page
Editor with Shortcode
Editor with Shortcode

Allows the use of a special shortcode [codepen_embed] for embedding Pens from CodePen.

You can learn more about CodePen here and about this plugin here.

Basic Usage

[codepen_embed height=300 theme_id=1 slug_hash='jwGBh' user='arasdesign' default_tab='html' animations='run']
  See the Pen <a href='https://codepen.io/arasdesign/pen/jwGBh'>Flat minion</a> by Amin Poursaied (<a href='https://codepen.io/arasdesign'>@arasdesign</a>) on <a href='https://codepen.io'>CodePen</a>
[/codepen_embed]

The Point

  1. You can use shortcodes in the “Visual” editor. CodePen Embeds are copy-and-paste HTML that don’t work when using the editor that way. If you ever use the Visual editor in WordPress, you’ll probably want to use this plugin.

  2. You can set a default theme, or override any theme set via Shortcode attribute.

  3. Hopefully eventually this plugin will have more functionality. Like have a fancy UI for picking Pens to embed and more control over the HTML output.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums