Title: CodePen Embed Block
Author: Chris Coyier
Published: <strong>January 17, 2020</strong>
Last modified: July 1, 2025

---

Search plugins

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

# CodePen Embed Block

 By [Chris Coyier](https://profiles.wordpress.org/chriscoyier/)

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

 * [Details](https://pcd.wordpress.org/plugins/codepen-embed-block/#description)
 * [Reviews](https://pcd.wordpress.org/plugins/codepen-embed-block/#reviews)
 *  [Installation](https://pcd.wordpress.org/plugins/codepen-embed-block/#installation)
 * [Development](https://pcd.wordpress.org/plugins/codepen-embed-block/#developers)

 [Support](https://wordpress.org/support/plugin/codepen-embed-block/)

## Description

[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.

## Screenshots

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

## Blocks

This plugin provides 1 block.

 *   CodePen Embed Embeds CodePen pens

## Installation

Install from the WordPress Plugin Directory.

## FAQ

### Why is this useful?

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

## Reviews

![](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/) May 4, 2022

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/) January 20, 2022

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!

 [ Read all 2 reviews ](https://wordpress.org/support/plugin/codepen-embed-block/reviews/)

## Contributors & Developers

“CodePen Embed Block” is open source software. The following people have contributed
to this plugin.

Contributors

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

“CodePen Embed Block” has been translated into 2 locales. Thank you to [the translators](https://translate.wordpress.org/projects/wp-plugins/codepen-embed-block/contributors)
for their contributions.

[Translate “CodePen Embed Block” into your language.](https://translate.wordpress.org/projects/wp-plugins/codepen-embed-block)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/codepen-embed-block/),
check out the [SVN repository](https://plugins.svn.wordpress.org/codepen-embed-block/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/codepen-embed-block/)
by [RSS](https://plugins.trac.wordpress.org/log/codepen-embed-block/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 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

## Meta

 *  Version **1.2.0**
 *  Last updated **9 months ago**
 *  Active installations **700+**
 *  WordPress version ** 5.1 or higher **
 *  Tested up to **6.7.5**
 *  PHP version ** 7.2 or higher **
 *  Languages
 * [Chinese (Taiwan)](https://tw.wordpress.org/plugins/codepen-embed-block/), [English (US)](https://wordpress.org/plugins/codepen-embed-block/),
   and [French (France)](https://fr.wordpress.org/plugins/codepen-embed-block/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/codepen-embed-block)
 * Tags
 * [code](https://pcd.wordpress.org/plugins/tags/code/)[codepen](https://pcd.wordpress.org/plugins/tags/codepen/)
   [embed](https://pcd.wordpress.org/plugins/tags/embed/)[gutenberg](https://pcd.wordpress.org/plugins/tags/gutenberg/)
 *  [Advanced View](https://pcd.wordpress.org/plugins/codepen-embed-block/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  2 5-star reviews     ](https://wordpress.org/support/plugin/codepen-embed-block/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/codepen-embed-block/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/codepen-embed-block/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/codepen-embed-block/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/codepen-embed-block/reviews/?filter=1)

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

[See all reviews](https://wordpress.org/support/plugin/codepen-embed-block/reviews/)

## Contributors

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

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/codepen-embed-block/)