CodePen Embed Block Icon

CodePen Embed Block

By Chris Coyier

Active Installs

600+

Last Updated

July 1, 2025

First Released

January 17, 2020

Download History (Last one month)


Contributors

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

Install from the WordPress Plugin Directory.

Why is this useful?

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

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
<br />
<b>Warning</b>:  Undefined array key /home/ylinkin/truewp.net/wp-content/plugins/truewp-plugin-info/truewp-plugin-info.php on line 756
" width="120" height="120">

No previous versions available.

Plugin Info

  • Version: 1.2.0
  • Last Updated: July 1, 2025
  • Active Installs: 600+
  • WordPress Version: 5.1 or higher
  • Tested up to: 6.7.5
  • PHP Version: 7.2 or higher
  • Tags:    
    code codepen embed gutenberg

Ratings


5.0 out of 5 stars. (2 reviews)

See all reviews
Scroll to Top