Add free games to a Squarespace site
Any of the 459 DiceGem games can be played on your Squarespace site for free, with no sign-up and no ads in the games. On Squarespace the game goes into a code block. The block takes the width of the column it sits in and the game keeps its shape, so there is nothing to size by hand.
What you need
A Core, Plus or Advanced plan. Squarespace does not run iframes in code blocks on the Basic plan: the code stays in the block but the game does not load. Some older plans also allow it; your plan page says which one you have.
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 Squarespace
- Edit the page or blog post and click an insert point where the game should appear.
- Choose Code from the block menu.
- Keep the type set to HTML, turn Display Source off and paste the game code.
- Save, then open the live page to check the game.
Size and layout
- Put the code block in a wide column. In a narrow sidebar the game still works but becomes small.
- The embed block is a different thing: it accepts links from services such as video sites, not custom code. Use the code block.
- The editor preview is not always the same as the live page, so judge the result on the published page.
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 Squarespace's own help pages on 20 November 2026. Menu names change from time to time; if yours look different, see Squarespace help: code blocks.
Other ways to embed
The embedding page has the rules for embedded games and the WordPress plugin. We also have steps for Wix, Webflow, Google Sites and Blogger.