Sharing CodePen 2.0 demos on DEV — CoPilot Tips & Insights
    Neura MarketNeura Market/CoPilot
    ChatGPTChatGPTClaudeClaudeGeminiGeminiCursorCursorGrokGrokPerplexityPerplexityCoPilotCoPilot
    DeepSeekDeepSeekStable DiffusionStable DiffusionMidjourneyMidjourney
    View All Directories
    OverviewRulesPromptsMCPsAgentsGamesBlogVideosGuidesCoursesCommunityPluginsTrending
    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:

    {% 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

    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
    5. Copy those values.
    6. Use them to generate a classic CodePen URL in the embed tag:
      {% 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:

    {% 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
    Five Gemma-4 models, one accelerator: what porting E2B 31B to AWS Inferentia2 taught megemma

    Five Gemma-4 models, one accelerator: what porting E2B 31B to AWS Inferentia2 taught me

    I ported the whole Gemma-4 family — E2B, E4B, 12B, 31B, and the 26B-A4B MoE — to run on...

    X
    xbill
    Hey DEV, I'm Tobore. Let's actually connect.community

    Hey DEV, I'm Tobore. Let's actually connect.

    Hey DEV, I'm Tobore. Let's actually connect. I've been on here for a while now, mostly writing and...

    L
    Laurina Ayarah
    I burned through thousands of AI tokens. Then a friend did it for freeai

    I burned through thousands of AI tokens. Then a friend did it for free

    (yep, kinda clickbait, just for the funsies 😊) At the beginning of the year, I relaunched my...

    P
    Paulo Henrique
    Claude might be saturating your machineai

    Claude might be saturating your machine

    My laptop was sitting idle with the fan at full tilt. Nothing was running that I knew of. The culprit...

    S
    Sidhant Panda
    Automated GitHub Code Reviews Using Google Geminigithubactions

    Automated GitHub Code Reviews Using Google Gemini

    I Built a Thing! TL;DR — Google Gemini-based Pull Request reviews and Issue Triaging for...

    D
    Darren "Dazbo" Lester
    What is an "agentic harness," actually?ai

    What is an "agentic harness," actually?

    I've been hearing the word "harness" thrown around a lot lately. I assumed it just meant "the IDE" or...

    T
    Tilde A. Thurium

    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.

    Neura Market

    Custom AI Systems & Services

    Our team of experienced AI builders will help build custom AI systems, workflows, and solutions for your business.

    Request custom work

    Ready-made automations for this

    Workflows from the Neura Market marketplace related to this CoPilot resource

    • Schedule Food Photo Sharing to Pinterest with GP-3.5 Captions and Google Sheetsn8n · $9.99 · Related topic
    • Automate YouTube Video Sharing with AI-Generated Posts to Facebook, X, and Discordn8n · $9.99 · Related topic
    • Automate PDF Creation and Sharing with OpenAI, Google Docs, and Slackn8n · $14.99 · Related topic
    • Automate Financial Report Generation and Sharing via Discordn8n · $14.99 · Related topic
    Browse all workflows