Sharing CodePen 2.0 demos on DEV — Stable Diffusion Tips &…
    Neura MarketNeura Market/Stable Diffusion
    ChatGPTChatGPTClaudeClaudeGeminiGeminiCursorCursorGrokGrokPerplexityPerplexityStable DiffusionStable Diffusion
    DeepSeekDeepSeekCoPilotCoPilotMidjourneyMidjourney
    View All Directories
    OverviewPromptsBlogVideosGuidesCoursesCommunityModelsLoRAsComfyUI WorkflowsTrending
    Stable DiffusionBlogSharing 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
    Context bankruptcy: The case for strategic forgetting for AI Agentsai

    Context bankruptcy: The case for strategic forgetting for AI Agents

    Most of us have seen a coding agent fail to complete a task we know it can do. We just don't...

    J
    James O'Reilly
    Parallel Compliance Engine: Drive-to-Sheets Multi-Agent Orchestrationgooglecloud

    Parallel Compliance Engine: Drive-to-Sheets Multi-Agent Orchestration

    When building Generative AI applications, developers often encounter a massive bottleneck: sequential...

    A
    Aryan Irani
    Is It Ethical to Post and Ask About Circuits on Dev.to?discuss

    Is It Ethical to Post and Ask About Circuits on Dev.to?

    I’ve been thinking about sharing some electronic circuit posts on Dev.to — small circuits, DIY...

    C
    codebunny20
    The One-Click Exporter: AI Studio Antigravity, Probed to Its Limitsagents

    The One-Click Exporter: AI Studio Antigravity, Probed to Its Limits

    What nobody tells you about exporting your multi-agent prototype to a local workspace. Every...

    L
    leslysandra
    Guarding the till while autonomous data agents do the diggingagenticarchitect

    Guarding the till while autonomous data agents do the digging

    Autonomous agents are genuinely good at answering messy business questions. Give one an LLM and a set...

    S
    Sireesha Pulipati
    Return on Attention: Why AI Code Reviews Are Wearing Us Outai

    Return on Attention: Why AI Code Reviews Are Wearing Us Out

    PR volume went up, ticket quality didn't, and the gap got filled with LLMs on both sides of the review: bots reviewing, bots replying, bots occasionally arguing with bots about priorities that only existed in a teammate's head. Our CEO named the actual problem, and it's bigger than code review.

    C
    christine

    Stay up to date

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

    Neura Market LogoNeura Market

    Discover the best AI prompts, plugins, and resources for Stable Diffusion 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.

    Ready-made automations for this

    Workflows from the Neura Market marketplace related to this Stable Diffusion resource

    • [FIX] Auto-Publish Images to TwitterX: Streamline Your Social Media Sharingmake · $18.54 · Related topic
    • Automate Telegram Recipe Sharing with Airtable Integrationn8n · $13.1 · Related topic
    • Automated Cocktail Recipe Sharing via Bannerbear and Rocketchatn8n · $12.99 · Related topic
    • Automate Slack File Sharing with Manual Trigger and Webhookn8n · $10.18 · Related topic
    Browse all workflows