Add free games to a Wix site

Any of the 459 DiceGem games can be played on your Wix site for free, with no sign-up and no ads in the games. Wix shows outside code inside its own box, the Embed Code element. You paste the game code into that box once, then size the box like any other element on the page.

What you need

A Wix site you can edit. The steps are the same idea in the Wix Editor and in Wix Studio; only the menu names differ slightly.

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 Wix

  1. Open your site in the editor and go to the page where the game should appear.
  2. Click Add Elements, open Embed & Social (Embed Code in the classic Wix Editor) and choose the Embed Code element, also listed as Embed HTML.
  3. Click Enter Code, paste the game code and click Apply (Update in the classic editor).
  4. Drag the handles of the box until the whole game and the line under it are visible. About 960 by 650 pixels suits a landscape game.
  5. Switch to the mobile view, resize the box there as well, then publish.

Size and layout

If the game does not show

We checked these steps against Wix's own help pages on 20 November 2026. Menu names change from time to time; if yours look different, see Wix help: adding an HTML iframe element.

Other ways to embed

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