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

  1. Edit the page or blog post and click an insert point where the game should appear.
  2. Choose Code from the block menu.
  3. Keep the type set to HTML, turn Display Source off and paste the game code.
  4. Save, then open the live page to check the game.

Size and layout

If the game does not show

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.