Add free games to a Webflow site

Any of the 459 DiceGem games can be played on your Webflow site for free, with no sign-up and no ads in the games. Webflow has an element made for this, Code Embed. It sits in your layout like a div, and the game inside takes the width of its parent and keeps its shape.

What you need

A paid Workspace (Core, Growth, Agency or Freelancer) or a site with an active Site plan. The free Starter plan does not include the Code Embed element.

Get the game code

Open the page of the game you want on DiceGem and choose Add this game to your website under the game, then copy the code. For Klondike Solitaire it looks like this:

<div style="max-width:960px">
  <iframe src="https://play.dicegem.com/klondike/1.0.0/" title="Klondike Solitaire" width="960" style="display:block;width:100%;height:auto;aspect-ratio:16/10;border:0" allow="fullscreen; autoplay" loading="lazy"></iframe>
  <p style="margin:6px 0 0;font-size:14px">Play more free games on <a href="https://dicegem.com/games/klondike/">DiceGem</a></p>
</div>

The last line links back to us. It is optional: you can delete it, but please do not change it if you keep it.

Add it to Webflow

  1. Open the page in the Designer and open the Add panel.
  2. Drag the Code Embed element to the place where the game should appear.
  3. Paste the game code into the editor that opens, then choose Save & Close.
  4. Publish the site and check the game on the published address.

Size and layout

If the game does not show

We checked these steps against Webflow's own help pages on 20 November 2026. Menu names change from time to time; if yours look different, see Webflow help: custom code embed.

Other ways to embed

The embedding page has the rules for embedded games and the WordPress plugin. We also have steps for Wix, Squarespace, Google Sites and Blogger.