Description
Add a playable game to any post or page in one step. Games run in a sandboxed iframe served by trysolitaire.com, so there is nothing to install or maintain. Your readers need no account and no sign-up, and a game keeps working offline once it has loaded.
22 games: Klondike, Spider (1/2/4 suits), FreeCell, Mahjong Solitaire, Pyramid, TriPeaks, 2048, Golf, Yukon, Russian, Forty Thieves, Double Klondike, Australian Patience, Canfield, Easthaven, Eight Off, Baker’s Game, Baker’s Dozen, Spiderette, Scorpion, Wasp, Beleaguered Castle.
Two ways to embed:
- The TrySolitaire Game block. Pick the game, theme, card style and language in the editor, and see a live preview.
-
The
[trysolitaire]shortcode:[trysolitaire game=”spider” suits=”2″ theme=”navy” lang=”en”]
Attributes: game, theme (dark-green, dark, navy, midnight, teal, light), cards (card face style), lang (en, es, fr, de, nl, hi), draw (1 or 3, Klondike-family), suits (1, 2 or 4, Spider-family), timer, moves, hints, fullscreen (true/false), sound (on/off), credit (yes/no, default no).
The embed is responsive and adapts its aspect ratio to phones and tablets.
The plugin adds no link to your page unless you turn on the credit link. The game frame, which trysolitaire.com serves, shows a small “Play on TrySolitaire” link.
Mahjong Solitaire opens on the Turtle layout.
External services
This plugin relies on trysolitaire.com, a game service run by the plugin’s author. The games run there, so the plugin cannot show them without it. The plugin itself sends no data: it adds an iframe to your page.
When a visitor views a page with the block or the shortcode, the visitor’s browser loads the game from https://trysolitaire.com/embed/{game}. The frame is lazy-loaded, so this happens as it nears the screen. Like any page load, the request carries the visitor’s IP address and browser user agent, and usually your site’s address as the referrer.
Inside the frame:
- The game keeps its statistics and settings in the visitor’s browser. It sets no cookies.
- Cloudflare Web Analytics counts page views without cookies.
- The icon font loads from cdnjs.cloudflare.com.
trysolitaire.com is hosted on Cloudflare.
- TrySolitaire: Terms of Service, Privacy Policy
- Cloudflare: Privacy Policy
Installation
- Upload the plugin folder to
/wp-content/plugins/, or install it from the Plugins screen. - Activate it.
- Add the “TrySolitaire Game” block to a post, or use the
[trysolitaire]shortcode.
FAQ
Do my readers need an account?
No. Games start instantly, with no sign-up and no download.
Does the embed slow my page down?
The iframe is lazy-loaded, so nothing is fetched until it approaches the viewport.
Does the plugin add a link to my page?
Not unless you ask for one. The credit link below the game is off by default. To show it, turn on “Show a credit link” in the block settings, or add credit="yes" to the shortcode.
The credit link reads “Play on TrySolitaire”, points to the game’s page on trysolitaire.com, and is marked rel="nofollow".
Screenshots
Changelog
1.3.0
- The credit link below the game is now off by default. Turn it on with the new “Show a credit link” block setting, or with
credit="yes"on the shortcode. - The credit link is now marked
rel="nofollow"and always reads “Play on TrySolitaire”. The rotating link wording is gone. - Fixed: the block had no setting to turn the credit link off.
- The readme now documents the trysolitaire.com service, with links to its Terms of Service and Privacy Policy.
- The game frame on trysolitaire.com no longer loads Microsoft Clarity, and it sets no cookies.
1.2.0
- Added Mahjong Solitaire, which opens on the Turtle layout.
- Renamed the plugin so the listing says what it embeds.
1.1.0
- Added
credit="yes|no"so the attribution link is optional. - Widened the attribution wording from two phrasings to ten, varying by game and by host site.
1.0.0
- Initial release: 21 games, Gutenberg block + shortcode, responsive sizing, theme/card-style/language options.



