Embed our games on your website
Every DiceGem game (459 and counting) can be played on your own site for free. There is no sign-up and
no fee, and the games show no ads. They run from play.dicegem.com, so they never touch your site's cookies or
storage, and they work on phones, tablets and computers.
Embed one game
Open any game page and choose Add this game to your website under the game: it has the code for that game. The code for Klondike Solitaire 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 line under the game links back to us. It is optional, but it helps people find more games and helps us keep making them. Please keep it as it is if you use it: one plain link with our name.
Website builders
The same code works in any site builder that lets you paste HTML. Each one hides that option in a different place, and some only allow it on paid plans, so we wrote the steps out:
- Add games to a Wix site
- Add games to a Squarespace site
- Add games to a Webflow site
- Add games to a Google Sites site
- Add games to a Blogger site
WordPress plugin
The DiceGem Games plugin adds a shortcode and two blocks, picks up new games and versions by itself, and keeps the games responsive in any theme. It can also build a whole games section for you: one page per game with the game, its description and related games, a games archive and category pages, with new games added every day. The pages are normal posts, so you can edit them and your changes are kept.
Get DiceGem Games on WordPress.org
The plugin is reviewed and hosted in the official WordPress plugin directory, so updates arrive in your dashboard like any other plugin. You can also download the zip and upload it yourself.
- In WordPress, go to Plugins → Add New, search for DiceGem Games, then install and activate it.
- Open DiceGem Games in the admin menu and click Download the game catalog. The plugin contacts us only after you do.
- Add the DiceGem game or DiceGem game grid block to a post or page, or use a shortcode.
- Or open DiceGem Games in the admin menu: the Games tab shows every game with its cover, a preview and a button that copies its shortcode.
- Optional: under DiceGem Games → Settings, turn on the credit link, casino-style games or enter a publisher ID.
-
For a games section: on the Start tab, click Create the games section. Your site then has
/games/,/games/chess/and/games/category/board-games/.
| Shortcode | What it does |
|---|---|
[dicegem game="klondike"] | One game. Use the slug from the game's address (dicegem.com/games/<slug>/). |
[dicegem game="klondike" ratio="4:3"] | Same game with a different shape. Width follows your content column. |
[dicegem_grid category="board-games" count="6"] | A showcase of six board games. Visitors pick one and it opens above the grid. |
The credit link is off until you turn it on, as WordPress plugin rules require. Casino-style games are hidden until you allow them in the settings.
Rules
- Show the games as they are: do not cover, crop, overlay or change them, or hide their notices.
- Casino-style games use virtual credits only and are meant for adults (18+). Do not present them as real-money gambling, attach prizes to them or place them next to gambling offers aimed at minors.
- Do not pay or reward people for playing, and do not send automated traffic to the games.
- We publish new versions at new addresses and keep the old ones online, so existing embeds keep working. The plugin always uses the newest version.
Our terms of service apply to embedded games as well.
Earn with your site
We are preparing a publisher programme that shares advertising revenue with sites that embed our games. Members get
a publisher ID to add to the code (?pub=YOUR_ID) or the plugin settings; until advertising starts, the
ID only lets us show you how often your visitors play. Read the publisher terms and
write to [email protected] to join.
Privacy
Embedded games store progress and settings in the player's own browser and send us anonymous play events (load, start, end) with the embedding site's address. They set no cookies and show no ads. Details are in our privacy policy. For developers, the full catalogue is available as JSON on the developers page.