Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

Codepen Embed Plugin

The Codepen Embed Plugin is for Grav CMS. You can use it to easily embed 'pens' from right from your markdown editor.


Installing the Codepen Embed plugin can be done in one of two ways. The GPM (Grav Package Manager) installation method enables you to quickly and easily install the plugin with a simple terminal command, while the manual method enables you to do so via a zip file.

GPM Installation (Preferred)

The simplest way to install this plugin is via the Grav Package Manager (GPM) through your system's terminal (also called the command line). From the root of your Grav install type:

bin/gpm install codepen-embed

This will install the Codepen Embed plugin into your /user/plugins directory within Grav. Its files can be found under /your/site/grav/user/plugins/codepen-embed.

Manual Installation

To install this plugin, just download the zip version of this repository and unzip it under /your/site/grav/user/plugins. Then, rename the folder to codepen-embed. You can find these files on GitHub or via

You should now have all the plugin files under


NOTE: This plugin is a modular component for Grav which requires Grav and the Shortcode Core


Before configuring this plugin, you should copy the user/plugins/codepen-embed/codepen-embed.yaml to user/config/plugins/codepen-embed.yaml and only edit that copy.

Here is the default configuration and an explanation of available options:

enabled: true


[codepen id=CODEPEN_ID]

You can use these parameters (only id is required)

Parameter Default Value Description
id The codepen from the url. For example on this pen: the id would be rHIsa
user required, no default Include the pen user in the markup
title default: '' Include the codepen
preview default: true. Show preview of the pen once embedded
height default: 265 Height of the pen embed
defaultTab default: js,result What tabs should be shown by default
content default:'' For SEO purposes you can also include content that will be removed once the pen has been embeded.


You can use it to easily embed pens from right from your markdown editor.







No packages published