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
- Open the page in the Designer and open the Add panel.
- Drag the Code Embed element to the place where the game should appear.
- Paste the game code into the editor that opens, then choose Save & Close.
- Publish the site and check the game on the published address.
Size and layout
- The code limits the game to 960 pixels wide. Inside a narrower container it shrinks to fit; to centre it, give the Code Embed element auto side margins.
- Custom code does not always run on the Designer canvas, so an empty box there is normal. The published site is what counts.
If the game does not show
- Check that the whole code was pasted, from the first
<divto the last</div>. - Look at the published page in a private window. Editors often show a placeholder instead of the game.
- A browser extension that blocks frames can hide the game for you while your visitors still see it.
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.