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
- Open your site in the editor and go to the page where the game should appear.
- Click Add Elements, open Embed & Social (Embed Code in the classic Wix Editor) and choose the Embed Code element, also listed as Embed HTML.
- Click Enter Code, paste the game code and click Apply (Update in the classic editor).
- 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.
- Switch to the mobile view, resize the box there as well, then publish.
Size and layout
- The game fills the box you draw, so a box that is too short cuts the game off. Make the box taller rather than changing the code.
- Wix keeps a separate layout for phones. A box that looks right on desktop can be too small on mobile until you resize it in the mobile view.
- Wix only shows code that loads over HTTPS. Our code always does.
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 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.