PlaygentDocs

Publish and embedWebsite builders

Website builders

The embed code is plain HTML, so it works anywhere you can add your own code. Pick your platform for the steps. In each case, first copy the code from the game's Embed dialog in Studio.

  1. Open the post or page in the block editor.
  2. Where the game should go, add a Custom HTML block.
  3. Paste the code and update the post.

In the classic editor, switch to the Text tab and paste the code there.

Some hosted WordPress plans remove scripts from posts. If the space stays empty, check with your host, or link to the game's share link instead.

Anywhere else

If your platform lets you add HTML with a script, paste the code as it is. A few things help:

  • Inline styles removed? Some editors strip the style attribute. Keep the space in your own CSS, for example .playgent { min-height: 640px }.
  • Strict security headers? If your site sends a Content-Security-Policy, allow Playgent as shown in the Embed reference.
  • Code shown inside a frame? Some builders put custom code inside a frame on their own address. Then Your sites sees that address, not yours.
  • No code allowed at all? Link to the game's share link. It works on its own page, no website needed.