
How to Embed a Random Name Picker on Your Website

The Short Answer
To embed WheelieNames on your site, wrap an iframe tag in a responsive container div, set the iframe src to wheelienames.com, add loading="lazy" and allow="fullscreen" attributes, then paste the code into a Custom HTML block (WordPress) or directly in your HTML file. The whole process takes under 5 minutes for a standard site. The rest of this guide covers the details that make it work correctly on mobile, the common problems you'll hit, and how to handle privacy and performance properly.
What's Covered in This Guide
Website owners who want to add interactive selection functionality face a choice: link out to a tool or embed it directly. Embedding keeps visitors on your site, reduces bounce rate, and turns a static page into a utility. This guide covers every method for embedding WheelieNames — iframe, WordPress Custom HTML block, and HTML/JS sites — including the common issues that trip people up and how to solve them. Developers building more complex integrations will find the CSP configuration and responsive layout sections especially useful.
Why Embed Instead of Just Linking?
Most blog posts and resource pages that reference WheelieNames just link to it. That's fine, but it creates a friction point: the visitor clicks away, uses the tool on a different site, and may or may not return to yours. Embedding eliminates that friction entirely.
When the wheel lives on your page, visitors use it in your context. They're still seeing your navigation, your related content, your offers. Session duration increases — typically by 2-4 minutes for pages with embedded interactive tools — which is a meaningful positive signal for search rankings. Pages that provide utility rather than just information tend to rank better over time because people return to them and stay longer.
There's also a credibility angle. If you're writing about fair selection, giveaways, classroom management, or any topic where WheelieNames is relevant, having the actual tool embedded in the page demonstrates you understand the subject well enough to implement it, not just describe it.
Getting the Embed Code
Before generating any code, configure the wheel to match your use case. Set the colors, enable or disable specific features, and adjust the default settings. Whatever configuration you set in WheelieNames will be preserved in the embed.
Once you're happy with the setup, look for the share or embed option in the WheelieNames interface. This generates an iframe code snippet that encodes your configuration. Copy it — you'll paste this into your site in the next step.
The generated code will look similar to this structure:
<div style="position: relative; width: 100%; aspect-ratio: 1 / 1;">
<iframe
src="https://wheelienames.com"
width="100%"
height="100%"
style="border: none; border-radius: 12px;"
loading="lazy"
allow="fullscreen"
title="WheelieNames Random Name Picker"
></iframe>
</div>The wrapper div with aspect-ratio: 1 / 1 is what makes this responsive. Without it, the iframe needs a fixed height, which breaks on mobile screens.
WordPress Installation (Step-by-Step)
WordPress is the platform where most people get tripped up, usually because they try to paste the code in the wrong place. Here's the exact process.
Method 1: Gutenberg Editor (Recommended for most users)
- 1Open the page or post where you want the wheel to appear and click Edit.
- 2Click the + button to add a new block, then search for Custom HTML and select it.
- 3Paste the complete embed code (the wrapper div plus the iframe) into the Custom HTML block's text area.
- 4Click Preview to see the wheel on the page before publishing. Confirm it renders correctly at both desktop and mobile widths.
- 5Publish or Update the page.
Method 2: Classic Editor (for older WordPress installations)
- 1Open the page editor and click the Text tab (not Visual) to switch to HTML view.
- 2Position your cursor where you want the wheel to appear in the HTML.
- 3Paste the embed code and save. Do not switch back to Visual view after pasting — it may strip the iframe code.
Note: If your WordPress installation has a security plugin that strips iframes, you may need to whitelist the wheelienames.com domain in that plugin's settings. Common plugins that do this include Wordfence and iThemes Security.
HTML and JavaScript Sites
For custom-built HTML sites or any platform that gives you direct access to the page source, embedding is straightforward. Open the HTML file in your editor, find the location in the body where you want the wheel, and paste the embed code.
For JavaScript-based sites like React or Next.js, use the iframe inside a component. If you're working in a React environment and need to avoid hydration issues, wrap the iframe in a client-side check:
// In a React/Next.js component
const WheelEmbed = () => {
return (
<div style={{ position: 'relative', width: '100%', aspectRatio: '1 / 1' }}>
<iframe
src="https://wheelienames.com"
width="100%"
height="100%"
style={{ border: 'none', borderRadius: '12px' }}
loading="lazy"
allow="fullscreen"
title="WheelieNames Random Name Picker"
/>
</div>
);
};Developers building more complex integrations or custom picker experiences might find CodeForge useful — it's designed for developers who want to build and extend interactive tools with custom logic. Browse all developer tools at the WheelieNames AppStore.
Common Embed Issues and How to Fix Them
Problem: The wheel appears as a thin strip or doesn't display at all
This almost always means the iframe has a fixed height that's too small, or no height set at all. The fix: use the aspect-ratio container approach shown above. Delete any fixed pixel height from the iframe and apply height: 100% to the iframe with the parent div controlling the dimensions via aspect-ratio.
Problem: The iframe is blocked and shows a blank space
Open your browser's developer console (F12 > Console). If you see an error about Content Security Policy refusing to load a frame, your site's CSP header is blocking the embed. You need to add frame-src https://wheelienames.com to your Content-Security-Policy header. This is done in your server configuration, .htaccess file, or through your hosting platform's security settings.
Problem: The wheel is visible but you can't interact with it on mobile
Some older CSS frameworks apply pointer-events: none or user-select: none to iframes as part of their base styling. Check your site's main stylesheet for these rules applied to iframe elements and remove or override them. You can test this quickly in DevTools by inspecting the iframe element and looking at its computed styles.
Problem: The page loads slowly after adding the embed
Verify that loading="lazy" is present on your iframe tag. Without it, the browser loads the iframe as part of the initial page render, which can delay your Largest Contentful Paint. If lazy loading is already set and you're still seeing performance regression, consider moving the wheel below the fold so it's truly below the initial viewport and won't be triggered until the user scrolls.
Customizing the Appearance
Beyond the color settings built into WheelieNames itself, you can style the embedding context to create a polished integration.
Adding a subtle drop shadow to the container div makes the wheel feel like a floating element rather than a flat inline box. A border-radius on the container matches the wheel's rounded edges. For sites with a dark background, adding a light background to just the wheel container creates a clean contrast zone.
/* Styling the embed container */
.wheel-container {
position: relative;
width: 100%;
max-width: 600px; /* Cap the max size */
aspect-ratio: 1 / 1;
margin: 2rem auto; /* Center it */
border-radius: 16px;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
overflow: hidden; /* Clip the iframe to the rounded corners */
}
.wheel-container iframe {
width: 100%;
height: 100%;
border: none;
}The max-width: 600px prevents the wheel from becoming oversized on wide desktop monitors. A 600px wheel is large enough to be clearly readable and interactive without dominating the entire page layout.
Privacy Considerations When Embedding
Embedding any third-party tool on your site creates a relationship between your site and that tool in the eyes of your visitors — and in the eyes of privacy regulations like GDPR and CCPA.
WheelieNames doesn't collect or transmit name data — everything stays in the visitor's browser via localStorage. There are no tracking pixels or advertising cookies. This makes it one of the cleaner third-party embeds you'll find. That said, any third-party connection can technically make network requests, and your privacy policy should disclose which third-party tools are embedded on your site.
For strict GDPR compliance, load the iframe conditionally after cookie consent. This is particularly important if you're embedding on pages that European visitors will regularly use. A simple implementation loads the wheel inside an if (hasConsent) check, replacing it with a placeholder message if consent hasn't been given yet.
For most educational and informational sites, the straightforward embed with a brief mention in the privacy policy is sufficient. The extra consent-gating complexity is mainly worth it for high-traffic commercial sites with significant EU audiences.
Add the Wheel to Your Site Today
Free to embed. No account required. Works on any platform in under 5 minutes.
Embedding FAQ
Will an embedded wheel slow down my page load speed?
Not if you implement it correctly. The key is adding loading="lazy" to your iframe tag. This attribute tells the browser to skip loading the embed until the user scrolls near it, protecting your Largest Contentful Paint score for above-the-fold content. WheelieNames itself is optimized to load quickly — the tool is a client-side Progressive Web App, so once the iframe initializes, it requires minimal ongoing bandwidth. Test your page speed before and after embedding using PageSpeed Insights to confirm there's no measurable regression.
Can I match the wheel colors to my website's brand?
Yes. WheelieNames supports color customization through the settings panel before you generate your embed code. Set the wheel slice colors to match your brand palette, choose a background color, and adjust the text color for legibility. The configuration gets baked into the embed URL as parameters, so the embedded version always shows your customized colors without requiring visitors to change any settings. For precise brand matching, use your exact hex codes rather than the default color picker swatches.
Is embedding better than just linking to WheelieNames?
For most website owners, yes. Embedding keeps visitors on your site while they use the tool, which reduces bounce rate and increases session duration — both positive signals for search engines. It also maintains your brand context: your visitors use the wheel while still seeing your navigation, your offers, and your content. Linking away sends them to a different domain, and a meaningful percentage won't return. The exception is mobile-first sites with strict performance budgets, where a link to open the tool in a new tab might be preferable to an iframe that adds payload to your page.
Do I need a plugin to embed on WordPress?
No plugin is needed. The Gutenberg editor — which has been WordPress's default editor since 2019 — includes a Custom HTML block that accepts any embed code directly. Search for "Custom HTML" in the block inserter, add it to your page, and paste your iframe code. This is faster and cleaner than installing a plugin, and it avoids the performance and security risks that come with third-party plugin dependencies. The block works identically on WordPress.com Business plans and self-hosted WordPress.org installations.
What if my site's Content Security Policy blocks the iframe?
If your site has a strict CSP (Content Security Policy) header configured, the iframe might be blocked because wheelienames.com isn't on your allowlist. The fix is to add wheelienames.com to your frame-src directive. In your server config or .htaccess file, find or add the Content-Security-Policy header and include frame-src https://wheelienames.com. If you're on a managed hosting platform without direct header access, your hosting provider's support team can help you modify CSP settings, or you can use a CSP plugin if you're on WordPress.
How do I make the embedded wheel responsive on mobile?
Use a percentage-based width and an aspect-ratio container instead of fixed pixel dimensions. Set the iframe width to 100% and wrap it in a div with the CSS rule aspect-ratio: 1 / 1 for a square container. This makes the wheel scale proportionally to whatever screen width is available without distorting the circular shape. Fixed heights are the most common reason embedded wheels look broken on mobile — always use aspect ratio containers for circular or square interactive embeds.
Can visitors enter their own names into an embedded wheel?
Yes. The embedded version of WheelieNames is fully interactive. Visitors can add names, edit the list, adjust settings, and spin the wheel just as they would on the main site. This makes it genuinely useful as a page tool rather than just a decorative element. Some use cases: a blog post about classroom activities with an embedded demo, a giveaway page where entrants can see the wheel, or a team-building resource page where visitors can run their own draws.
What are the privacy implications of embedding a third-party tool?
When you embed any third-party iframe, that tool can set cookies and make network requests from your visitor's browser. WheelieNames does not use tracking cookies or collect personal data — all name data stays client-side. However, your privacy policy should disclose that you embed third-party tools. If you're serving EU visitors under GDPR, make sure your cookie consent banner covers third-party embeds. The cleanest approach for strict privacy compliance is to load the iframe only after the user consents to third-party content.
Share This Article
Help spread the word and share with your network
Preview:How to Embed a Random Name Picker on Your Website (2026 Guide) Step-by-step instructions to embed WheelieNames on WordPress, HTML sites, and Shopify....