Sharing CodePen 2.0 demos on DEV β€” CoPilot Blog
    Neura MarketNeura Market/CoPilot
    ChatGPTChatGPTClaudeClaudeGeminiGeminiCursorCursorGrokGrokPerplexityPerplexityCoPilotCoPilot
    DeepSeekDeepSeekStable DiffusionStable DiffusionMidjourneyMidjourney
    View All Directories
    OverviewRulesPromptsMCPsAgentsBlogVideosGuidesCoursesCommunityPluginsTrendingGenerate
    CoPilotBlogSharing CodePen 2.0 demos on DEV
    Back to Blog
    Sharing CodePen 2.0 demos on DEV
    meta

    Sharing CodePen 2.0 demos on DEV

    Alvaro Montoro April 7, 2026
    0 views

    How to share CodePen 2.0 demos on DEV

    --- title: Sharing CodePen 2.0 demos on DEV published: true description: How to share CodePen 2.0 demos on DEV tags: meta,dev cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v6os61zdhth7fjm1wrql.png --- > ***NOTE: the DEV team patched this and it is already working. No need for tricks or hacks. Just embed CodePen demos as you always did. Thanks, devs!*** If you've tried the new CodePen 2.0 editor, you may have noticed that the URL format has changed. And if you've tried sharing one of these demos here on DEV, you've probably also noticed that it doesn't work with the standard CodePen embed code: ```plaintext {% codepen https://codepen.io/editor/alvaromontoro/pen/019d657e-d7bc-746a-9bc3-4df2244c97cc/24ac30a5aad27b2b927702d3557c6e70 %} ``` If you try adding that code to a DEV article, you'll get this error: ![Whoops! Something went wrong: Invalid CodePen code](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sw6iue79ihieveuheyjz.png) So, the new URL doesn't work yet... but what if you still want to include it in a DEV article? Good news: you can! You just need to use the hash for the CodePen demo instead. Here's how to find it: 1. Click on the **Share icon** in the top-right corner 2. Select "**Embed**" 3. A modal will open, make sure "**HTML (recommended)**" is selected 4. In the code, look for `data-slug-hash` and `data-user` ![Screenshot of CodePen share modal with the data-slug-hash attribute and data-user highlighted](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0nv72myr2yya6f0ssa1f.png) 5. Copy those values. 6. Use them to generate a classic CodePen URL in the embed tag: ```plaintext {% codepen https://codepen.io/[USER]/pen/[SLUGH_HASH] %} ``` 7. That's it! In the screenshot above, the hash is "MYjBBrm" and the user is "alvaromontoro", that makes the URL https://codepen.io/alvaromontoro/pen/MYjBBrm, so the embed tag becomes: ```plaintext {% codepen https://codepen.io/alvaromontoro/pen/MYjBBrm %} ``` Which works just fine (it will only show the preview, not the code): {% codepen https://codepen.io/alvaromontoro/pen/MYjBBrm %} --- To be fair, I expect the DEV team to fix this soon. But in the meantime, this is a simple workaround for sharing CodePen 2.0 demos.

    Tags

    metadev

    Comments

    More Blog

    View all
    Minimalist EKS: The Easy Waykubernetes

    Minimalist EKS: The Easy Way

    Amazon EKS manages the Kubernetes control plane, but you remain responsible for provisioning the...

    J
    Joaquin Menchaca
    Never forget to enter the Stern Grove lottery again!ai

    Never forget to enter the Stern Grove lottery again!

    Browser automation with Playwright, Python, GitHub Actions, and Entire to auto-enter San Francisco Stern Grove concert lotteries each week!

    L
    Lizzie Siegle
    A Free Screenshot Editor That Never Uploads Your Imagetypescript

    A Free Screenshot Editor That Never Uploads Your Image

    A free screenshot and image editor that runs entirely in your browser. Keeping every edit reversible and handling big phone photos, in plain TypeScript and Canvas2D.

    M
    Martin Stark
    I built a CLI to break my highlights out of Apple Booksshowdev

    I built a CLI to break my highlights out of Apple Books

    A macOS CLI + MCP server that exports Apple Books highlights to Markdown and gives AI assistants direct access to your reading notes.

    A
    Andrey Korchak
    A Developer's Guide to Agent Hooks in Antigravity CLIai

    A Developer's Guide to Agent Hooks in Antigravity CLI

    Motivation To be quite honest, "Hooks"β€”the shell commands we trigger at specific points...

    T
    Tanaike
    Tactical vs. Strategic Agentic AI Development β€” A Playbook for Developersagents

    Tactical vs. Strategic Agentic AI Development β€” A Playbook for Developers

    The Strategic Engineer: Why Writing Code Is No Longer Your Most Valuable Skill ...

    A
    Adewumi Saheed Adewale

    Stay up to date

    Get the latest CoPilot prompts, rules, and resources delivered to your inbox weekly.

    Neura Market LogoNeura Market

    Discover the best AI prompts, plugins, and resources for CoPilot and more.

    Content Types

    • Rules
    • Prompts
    • MCPs
    • Agents
    • Guides

    Platforms

    • ChatGPT Directory
    • Claude Directory
    • Gemini Directory
    • Cursor Directory
    • Grok Directory
    • Perplexity Directory
    • DeepSeek Directory
    • CoPilot Directory
    • Stable Diffusion Directory
    • Midjourney Directory
    • All Directories

    Resources

    • Blog
    • Documentation
    • Help Center
    • Marketplace

    Legal

    • Privacy Policy
    • Terms of Service

    Β© 2026 Neura Market. All rights reserved.

    |

    Not affiliated with any AI platform vendors.