CodePen Embed Block
Chris Coyier By Chris Coyier

November 18, 2023

CodePen Embed Block Plugin

An (official) Gutenberg block for CodePen Embeds.

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 Gutenberg block makes it easy to embed them. While oEmbed (just paste in a Pen URL!) also works for CodePen embeds in Gutenberg, this plugin allows for much more control, like setting the the height, theme, and default tabs.

Installation

Install from the WordPress Plugin Directory.

Screenshots

  1. Adding a CodePen Embed block.

    Adding a CodePen Embed block.

  2. The block with all the options.

    The block with all the options.

FAQ

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

Details

  • Version: 1.1.0
  • Active installations: 800
  • WordPress Version: 5.1
  • Tested up to: 6.3.5
  • PHP Version: 7.2

Ratings


5 Stars
4 Stars
3 Stars
2 Stars
1 Stars