ToolsGambling
TG
/rtp / how-to-embed

How to Embed the Slot RTP Widget

Step-by-step guide for editors and developers. Works on any site that accepts raw HTML — no JavaScript, no plugins, no auth. Five minutes end-to-end.

What you'll get

A self-contained iframe that displays one slot's verified RTP data inline in your post: stated RTP, variant range, volatility, max win, release year, source URL, and a small attribution link back to ToolsGambling. The widget is responsive up to 400px wide and ships with three sizes (compact, standard, detailed) and three themes (auto, light, dark).

Live example: /widget/rtp/gates-of-olympus (opens in a new tab).

Quick start (5 minutes)

  1. Open the Slot RTP Database and search for your slot.
  2. Click the slot row to expand the panel with full data.
  3. Customize the widget (size, theme, accent color, fields to show) using the buttons in the embed-generator section.
  4. Click COPY next to the iframe code block.
  5. Paste it into your CMS. See platform-specific instructions below for the exact place.

WordPress

Block editor (Gutenberg)

  1. Open the post or page editor.
  2. Click the + button to add a new block.
  3. Search for "Custom HTML" under "Formatting" or "Widgets".
  4. Paste the iframe code from the embed generator.
  5. Click Preview in the block toolbar to check the rendered widget before publishing.

Classic editor

  1. Switch the editor to the "Text" tab (top right).
  2. Paste the iframe code at your cursor position.
  3. Switch back to the "Visual" tab to preview.

If your WordPress install strips iframes, ask your admin to install "iframe" plugin or whitelist the source via your theme's allowed-tags filter.

Webflow

  1. Open the page in Designer mode.
  2. Drag an Embed element onto your canvas (under the Components tab).
  3. Paste the iframe code into the embed code editor that appears.
  4. Click Save & Close.
  5. Publish your site. The widget renders live on the public URL (Webflow shows a placeholder in Designer; iframes render only on the published site).

Ghost

  1. In the post editor, click the + icon on a blank line.
  2. Type /html and select HTML.
  3. Paste the iframe code into the HTML card.
  4. Click outside the card to render. The widget appears in the preview pane.

Squarespace

  1. In the page editor, click + and pick Code.
  2. Set the language dropdown to HTML.
  3. Paste the iframe code.
  4. Click Apply. Note: 7.0 templates may require business plan or higher for code blocks.

Generic HTML / static sites

Drop the iframe HTML wherever your site renders raw markup:

  • Astro / Eleventy / Hugo: paste into the .md or template file.
  • Jekyll / GitHub Pages: paste into the post body. Markdown allows raw HTML.
  • Next.js / React: wrap in {` `} or use dangerouslySetInnerHTML.

Common pitfalls

Width too narrow

The widget hits its max-width: 400px cap. To force wider, wrap in a div with explicit width or remove the inline style attribute from the iframe. The widget content reflows.

Height clipped

The embed code sets fixed heights per size (compact 90px, standard 220px, detailed 340px). If your selected size shows less data than expected, switch to a larger one.

Theme doesn't match my site

Use theme=light for white-background sites, theme=dark for dark sites, or theme=auto to follow the visitor's OS preference. Pick a custom accent color matching your brand from the embed generator.

Mobile layout broken

The widget is responsive. If it overflows on mobile, your container CSS may be forcing a fixed width. Wrap the iframe in a div with max-width: 100%.

Troubleshooting

  • Widget doesn't load → check browser console. If you see CSP errors, your site has a strict frame-src policy that blocks iframes. Add toolsgambling.com to the allowlist.
  • Widget loads but shows "Error" → the slot slug may be wrong. Verify the URL from the embed generator matches a real slot in the database.
  • Old widget data → newly-generated embed codes include a ?v= data-version param. If you need to refresh an existing embed, regenerate the code from /rtp and replace the iframe.
  • Need a higher request quota or commercial license? Email hello@toolsgambling.com. We issue keys manually for confirmed use cases.