{"id":13634,"date":"2021-06-06T12:34:43","date_gmt":"2021-06-06T12:34:43","guid":{"rendered":"https:\/\/round-lake.dustinice.workers.dev:443\/https\/embedpress.com\/?post_type=docs&#038;p=13634"},"modified":"2021-06-06T12:34:43","modified_gmt":"2021-06-06T12:34:43","password":"","slug":"embed-codepen-codes-in-wordpress","status":"publish","type":"docs","link":"https:\/\/round-lake.dustinice.workers.dev:443\/https\/embedpress.com\/docs\/embed-codepen-codes-in-wordpress\/","title":{"rendered":"How To Embed CodePen Codes In WordPress"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">With <\/span><a href=\"https:\/\/round-lake.dustinice.workers.dev:443\/https\/embedpress.com\/\" target=\"_blank\" rel=\"noopener\"><b>EmbedPress<\/b><\/a><span style=\"font-weight: 400;\">, you can easily embed CodePen codes in WordPress.\u00a0<\/span><\/p>\n<p><a href=\"https:\/\/round-lake.dustinice.workers.dev:443\/https\/codepen.io\/\" target=\"_blank\" rel=\"noopener\"><b>CodePen<\/b><\/a> <span style=\"font-weight: 400;\">is an online community or social development environment for front-end and back-end website developers. It acts as an online code editor and open-source learning environment, where developers can create code snippets, called &#8220;pens,&#8221;, using HTML, CSS, and JavaScript.<\/span><\/p>\n<h2 style=\"text-align: center;\"><strong>How To Embed CodePen Codes With EmbedPress<\/strong><\/h2>\n<p><span style=\"font-weight: 400;\">Here are the steps to embed any code into your WordPress site, using the<\/span><b> EmbedPress <\/b><span style=\"font-weight: 400;\">plugin and a URL.<\/span><\/p>\n<h3><b>Step 1: Install The EmbedPress Plugin<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">EmbedPress is a very helpful plugin that expands and improves WordPress\u2019s capabilities. Install EmbedPress, and your WordPress site will have far more powerful media options. <\/span><a href=\"https:\/\/round-lake.dustinice.workers.dev:443\/https\/wordpress.org\/plugins\/embedpress\/\" target=\"_blank\" rel=\"nofollow noopener\"><b>Click here to find EmbedPress on WordPress.org<\/b><\/a><span style=\"font-weight: 400;\">.<\/span><\/p>\n<h3><b>Step 2: Get The URL Of The CodePen Code File<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">Before you can embed CodePen code into WordPress, you need to get the URL. To do this, g<\/span><span style=\"font-weight: 400;\">o to the <\/span><a href=\"https:\/\/round-lake.dustinice.workers.dev:443\/https\/codepen.io\/\" target=\"_blank\" rel=\"nofollow noopener\"><b>CodePen<\/b><\/a> website<span style=\"font-weight: 400;\">.<\/span><\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter size-full wp-image-13635\" src=\"https:\/\/round-lake.dustinice.workers.dev:443\/https\/embedpress.com\/wp-content\/uploads\/2021\/06\/1.png\" alt=\"embed CodePen\" width=\"1366\" height=\"685\" title=\"\" srcset=\"https:\/\/round-lake.dustinice.workers.dev:443\/https\/embedpress.com\/wp-content\/uploads\/2021\/06\/1.png 1366w, https:\/\/round-lake.dustinice.workers.dev:443\/https\/embedpress.com\/wp-content\/uploads\/2021\/06\/1-300x150.png 300w, https:\/\/round-lake.dustinice.workers.dev:443\/https\/embedpress.com\/wp-content\/uploads\/2021\/06\/1-1024x513.png 1024w, https:\/\/round-lake.dustinice.workers.dev:443\/https\/embedpress.com\/wp-content\/uploads\/2021\/06\/1-768x385.png 768w\" sizes=\"(max-width: 1366px) 100vw, 1366px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Next, use your login credentials to sign in (this is optional). <\/span><span style=\"font-weight: 400;\">Look for the code you want to embed into your WordPress website. <\/span><span style=\"font-weight: 400;\">On the code page, copy the URL<\/span><b> from the browser address bar. <\/b><span style=\"font-weight: 400;\">Or, click on the \u201c<\/span><b>Share<\/b><span style=\"font-weight: 400;\">\u201d button, and a pop-up window will appear. Afterwards copy the link.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-13637\" src=\"https:\/\/round-lake.dustinice.workers.dev:443\/https\/embedpress.com\/wp-content\/uploads\/2021\/06\/2.gif\" alt=\"embed CodePen\" width=\"1366\" height=\"657\" title=\"\"><\/p>\n<h3><b>Step 3: Publish Your WordPress CodePen embed<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">Now you have the URL, you can use it to embed the code in WordPress.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Open your WordPress site and <\/span><span style=\"font-weight: 400;\">\u2018Add\u2019 or \u2018Edit\u2019 a post or page that can be on <\/span><a href=\"https:\/\/round-lake.dustinice.workers.dev:443\/https\/wordpress.org\/\" target=\"_blank\" rel=\"nofollow noopener\"><b>Gutenberg Editor<\/b><\/a><span style=\"font-weight: 400;\">, <\/span><a href=\"https:\/\/round-lake.dustinice.workers.dev:443\/https\/wordpress.org\/plugins\/classic-editor\/\" target=\"_blank\" rel=\"nofollow noopener\"><b>Classic Editor<\/b><\/a><span style=\"font-weight: 400;\">,<\/span> <span style=\"font-weight: 400;\">or <\/span><a href=\"https:\/\/round-lake.dustinice.workers.dev:443\/https\/wpdeveloper.net\/go\/elementor\" target=\"_blank\" rel=\"noopener\"><b>Elementor Editor<\/b><\/a><span style=\"font-weight: 400;\">.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-13638\" src=\"https:\/\/round-lake.dustinice.workers.dev:443\/https\/embedpress.com\/wp-content\/uploads\/2021\/06\/3.png\" alt=\"embed CodePen\" width=\"1366\" height=\"684\" title=\"\" srcset=\"https:\/\/round-lake.dustinice.workers.dev:443\/https\/embedpress.com\/wp-content\/uploads\/2021\/06\/3.png 1366w, https:\/\/round-lake.dustinice.workers.dev:443\/https\/embedpress.com\/wp-content\/uploads\/2021\/06\/3-300x150.png 300w, https:\/\/round-lake.dustinice.workers.dev:443\/https\/embedpress.com\/wp-content\/uploads\/2021\/06\/3-1024x513.png 1024w, https:\/\/round-lake.dustinice.workers.dev:443\/https\/embedpress.com\/wp-content\/uploads\/2021\/06\/3-768x385.png 768w\" sizes=\"(max-width: 1366px) 100vw, 1366px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Let\u2019s get the complete guideline on how you can easily embed CodePen codes on your preferred editor below:\u00a0\u00a0<\/span><\/p>\n<h2 style=\"text-align: center;\"><b>How To Embed CodePen Codes Using Gutenberg Editor:<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">Click on the <\/span><b>\u2018+\u2019 <\/b><span style=\"font-weight: 400;\">icon on your post content area in the <\/span><b>Gutenberg editor<\/b><span style=\"font-weight: 400;\"> and select the \u2018EmbedPress\u2019 block. You can also insert EmbedPress from the \u2018<\/span><b>Add Block<\/b><span style=\"font-weight: 400;\">\u2019 button at the top of the page.\u00a0<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-13639 size-full\" src=\"https:\/\/round-lake.dustinice.workers.dev:443\/https\/embedpress.com\/wp-content\/uploads\/2021\/06\/4.gif\" alt=\"embed CodePen\" width=\"1366\" height=\"657\" title=\"\"><\/p>\n<p><span style=\"font-weight: 400;\">Once the block appears, enter the URL into the block as shown below.\u00a0<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-13640 size-full\" src=\"https:\/\/round-lake.dustinice.workers.dev:443\/https\/embedpress.com\/wp-content\/uploads\/2021\/06\/5.gif\" alt=\"embed CodePen\" width=\"1366\" height=\"654\" title=\"\"><\/p>\n<p><span style=\"font-weight: 400;\">Your URL will automatically be transformed into an embed of your CodePen code file. Then, p<\/span><span style=\"font-weight: 400;\">ublish your WordPress content, and the code will be embedded on the published page or post for users to see.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">While editing your WordPress content, you can also edit your embed, thanks to EmbedPress.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">To edit the embed in Gutenberg, follow the steps given below:\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Click on the EmbedPress block on your editor &#8211; t<\/span><span style=\"font-weight: 400;\">he block customizer will appear on the side panel of the Editor.\u00a0<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-13641 size-full\" src=\"https:\/\/round-lake.dustinice.workers.dev:443\/https\/embedpress.com\/wp-content\/uploads\/2021\/06\/6.gif\" alt=\"embed CodePen\" width=\"1366\" height=\"656\" title=\"\"><\/p>\n<p><span style=\"font-weight: 400;\">You can change the dimensions of the embedded code by modifying the width and height and customize it the way you need with absolute ease.\u00a0<\/span><\/p>\n<h2 style=\"text-align: center;\"><b>How To Embed CodePen Codes Using Elementor Editor:<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">You can embed CodePen code using EmbedPress in <\/span><a href=\"https:\/\/round-lake.dustinice.workers.dev:443\/http\/www.wpdeveloper.net\/go\/elementor\" target=\"_blank\" rel=\"noopener\"><b>Elementor<\/b><\/a><span style=\"font-weight: 400;\">.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Drag &amp; drop the \u2018<\/span><b>EmbedPress<\/b><span style=\"font-weight: 400;\">\u2019 widget onto the Elementor editor.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-13642 size-full\" src=\"https:\/\/round-lake.dustinice.workers.dev:443\/https\/embedpress.com\/wp-content\/uploads\/2021\/06\/7.gif\" alt=\"embed CodePen\" width=\"1365\" height=\"653\" title=\"\"><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0Next, paste the code URL onto the \u2018<\/span><b>Content Setting<\/b><span style=\"font-weight: 400;\">\u2019 of the widget from the Elementor side panel.\u00a0<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-13643 size-full\" src=\"https:\/\/round-lake.dustinice.workers.dev:443\/https\/embedpress.com\/wp-content\/uploads\/2021\/06\/8.gif\" alt=\"embed CodePen\" width=\"1366\" height=\"657\" title=\"\"><\/p>\n<p><span style=\"font-weight: 400;\">You can edit the embedded code on the Elementor editor with a few easy steps.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">First, go to the \u2018<\/span><b>Style<\/b><span style=\"font-weight: 400;\">\u2019 tab on the Elementor side panel. Then, <\/span><span style=\"font-weight: 400;\">Change the dimensions, aspect ratios, and background color as necessary.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-13644\" src=\"https:\/\/round-lake.dustinice.workers.dev:443\/https\/embedpress.com\/wp-content\/uploads\/2021\/06\/9.gif\" alt=\"embed CodePen\" width=\"1365\" height=\"656\" title=\"\"><\/p>\n<h2 style=\"text-align: center;\"><b>How To Embed CodePen Codes Using Classic Editor:<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">You can effortlessly embed CodePen codes onto your <\/span><b>Classic Editor<\/b><span style=\"font-weight: 400;\"> with just a click.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Paste the URL directly onto the \u2018<\/span><b>content area<\/b><span style=\"font-weight: 400;\">\u2019 of the editor interface. A purple background with a \u201c<\/span><b>Loading your embed\u2026<\/b><span style=\"font-weight: 400;\">\u201d message will appear in the content area for a few seconds. Once the content appears on the editor, p<\/span><span style=\"font-weight: 400;\">ublish your WordPress content and click preview.\u00a0<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-13645\" src=\"https:\/\/round-lake.dustinice.workers.dev:443\/https\/embedpress.com\/wp-content\/uploads\/2021\/06\/10.png\" alt=\"embed CodePen\" width=\"1366\" height=\"691\" title=\"\" srcset=\"https:\/\/round-lake.dustinice.workers.dev:443\/https\/embedpress.com\/wp-content\/uploads\/2021\/06\/10.png 1366w, https:\/\/round-lake.dustinice.workers.dev:443\/https\/embedpress.com\/wp-content\/uploads\/2021\/06\/10-300x152.png 300w, https:\/\/round-lake.dustinice.workers.dev:443\/https\/embedpress.com\/wp-content\/uploads\/2021\/06\/10-1024x518.png 1024w, https:\/\/round-lake.dustinice.workers.dev:443\/https\/embedpress.com\/wp-content\/uploads\/2021\/06\/10-768x388.png 768w\" sizes=\"(max-width: 1366px) 100vw, 1366px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">The URL will be automatically converted into an embed of your CodePen code.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-13646\" src=\"https:\/\/round-lake.dustinice.workers.dev:443\/https\/embedpress.com\/wp-content\/uploads\/2021\/06\/11.png\" alt=\"embed CodePen\" width=\"1366\" height=\"687\" title=\"\" srcset=\"https:\/\/round-lake.dustinice.workers.dev:443\/https\/embedpress.com\/wp-content\/uploads\/2021\/06\/11.png 1366w, https:\/\/round-lake.dustinice.workers.dev:443\/https\/embedpress.com\/wp-content\/uploads\/2021\/06\/11-300x151.png 300w, https:\/\/round-lake.dustinice.workers.dev:443\/https\/embedpress.com\/wp-content\/uploads\/2021\/06\/11-1024x515.png 1024w, https:\/\/round-lake.dustinice.workers.dev:443\/https\/embedpress.com\/wp-content\/uploads\/2021\/06\/11-768x386.png 768w\" sizes=\"(max-width: 1366px) 100vw, 1366px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Your code embed will be fully responsive on your website.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Still getting stuck? Feel free to <\/span><a href=\"https:\/\/round-lake.dustinice.workers.dev:443\/https\/embedpress.com\/support\/\" target=\"_blank\" rel=\"noopener\"><b>contact our support team<\/b><\/a><span style=\"font-weight: 400;\"> for further assistance.<\/span><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can now easily embed CodePen codes into your WordPress websites with just a single click with EmbedPress. All you need is the URL of the code you want to embed into your site and the EmbedPress plugin installed on your site. <\/p>\n","protected":false},"author":398,"featured_media":13640,"template":"","meta":{"_eb_attr":"","inline_featured_image":false,"_eb_data_table":"","_analytify_skip_tracking":false,"footnotes":""},"doc_category":[2221],"doc_tag":[2253,2231],"class_list":["post-13634","docs","type-docs","status-publish","has-post-thumbnail","hentry","doc_category-embeds","doc_tag-codepen","doc_tag-settings"],"year_month":"2026-07","word_count":605,"total_views":"3429","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"Tasnia","author_nicename":"tasnia","author_url":"https:\/\/round-lake.dustinice.workers.dev:443\/https\/embedpress.com\/author\/tasnia\/"},"doc_category_info":[{"term_name":"Embed Sources","term_url":"https:\/\/round-lake.dustinice.workers.dev:443\/https\/embedpress.com\/docs-category\/embeds\/"}],"doc_tag_info":[{"term_name":"codepen","term_url":"https:\/\/round-lake.dustinice.workers.dev:443\/https\/embedpress.com\/docs-tag\/codepen\/"},{"term_name":"settings","term_url":"https:\/\/round-lake.dustinice.workers.dev:443\/https\/embedpress.com\/docs-tag\/settings\/"}],"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/round-lake.dustinice.workers.dev:443\/https\/embedpress.com\/wp-json\/wp\/v2\/docs\/13634","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/round-lake.dustinice.workers.dev:443\/https\/embedpress.com\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/round-lake.dustinice.workers.dev:443\/https\/embedpress.com\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/round-lake.dustinice.workers.dev:443\/https\/embedpress.com\/wp-json\/wp\/v2\/users\/398"}],"version-history":[{"count":5,"href":"https:\/\/round-lake.dustinice.workers.dev:443\/https\/embedpress.com\/wp-json\/wp\/v2\/docs\/13634\/revisions"}],"predecessor-version":[{"id":13666,"href":"https:\/\/round-lake.dustinice.workers.dev:443\/https\/embedpress.com\/wp-json\/wp\/v2\/docs\/13634\/revisions\/13666"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/round-lake.dustinice.workers.dev:443\/https\/embedpress.com\/wp-json\/wp\/v2\/media\/13640"}],"wp:attachment":[{"href":"https:\/\/round-lake.dustinice.workers.dev:443\/https\/embedpress.com\/wp-json\/wp\/v2\/media?parent=13634"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/round-lake.dustinice.workers.dev:443\/https\/embedpress.com\/wp-json\/wp\/v2\/doc_category?post=13634"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/round-lake.dustinice.workers.dev:443\/https\/embedpress.com\/wp-json\/wp\/v2\/doc_tag?post=13634"}],"curies":[{"name":"wp","href":"https:\/\/round-lake.dustinice.workers.dev:443\/https\/api.w.org\/{rel}","templated":true}]}}