Plugin info

Total downloads: 32,150
Active installs: 1,000
Total reviews: 6
Average rating: 4.3
Support threads opened: 0
Support threads resolved: 0 (0%)
Available in: 1 language(s)
Contributors: 2
Last updated: 10/1/2024 (456 days ago)
Added to WordPress: 1/6/2014 (11 years old)
Minimum WordPress version: 2.6
Tested up to WordPress version: 6.6.4
Minimum PHP version: f

Maintenance & Compatibility

Maintenance score

Possibly abandoned • Last updated 456 days ago • 6 reviews

28/100

Is CodePen Embedded Pens Shortcode abandoned?

Possibly abandoned (last update 456 days ago).

Compatibility

Requires WordPress: 2.6
Tested up to: 6.6.4
Requires PHP: f

Similar & Alternatives

Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.

No similar plugins found yet.

Description

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 Flat minion by Amin Poursaied (@arasdesign) on CodePen
[/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.

Installation

For old school manual installation people: copy the folder “codepen_embed” into the /wp-content/plugins/ folder. Then go to the Plugins area of the Admin and activate. Otherwise, search for “CodePen Embed” from the admin area of your WordPress site in Plugins > Add New.

Frequently Asked Questions

What is CodePen?

CodePen is a web app that allows anyone to create things with HTML, CSS, and JavaScript.

Why is this useful?

Shortcodes are clean! You can already copy and paste JavaScript or iframe code to embed a Pen onto a WordPress page, but you need to make sure to be in the “HTML” tab of the writing area. If a user is in the “Visual” (default) tab, the embed code will not work. Short codes will work either way.

You can also manage the default theme of the embeds with this plugin.

Review feed

No reviews available

Screenshots

  1. An Embedded Pen

    An Embedded Pen

  2. Settings Page

    Settings Page

  3. Editor with Shortcode

    Editor with Shortcode

Changelog

  • 0.1 – Beta
  • 0.2 – Adding line_numbers attribute
  • 0.3 – Default for data_animations is now run, as documented.
  • 0.4 – Added preview attribute. Removed line numbers attribute.
  • 0.5 – Defaulting to v2 of Embeds by default
  • 0.6 – Make sure theme_id="light" and theme_id="dark" work.
  • 0.7 – Making sure data_edtiable support editable embeds.
    • 0.7.1 – Fixing naming thing
  • 0.8 – Updating location of CodePen’s embed script
  • 1.0.2 – Bug fixes
  • 1.0.3 – Bug fixes