How to embed a football lineup on your website or blog (free)
Show the starting XI you built on DreamerBuild on your blog, news site or fan page with one snippet. Step by step for WordPress, Blogger and Wix.
If you write match previews, transfer takes or "this is how we should line up" posts, a screenshot of a lineup looks blurry and shrinks on phones. You can now place any lineup you build on DreamerBuild on your own site with a single snippet: the pitch and players stay sharp at every screen size, and readers who want their own version can open the same lineup in one click.
What it looks like on your site
The box below is exactly what an embedded lineup looks like inside another site. The pitch, players and shape appear exactly as built; readers who want to edit it open the same lineup in DreamerBuild with the button at the top.
The code for this example
<iframe src="https://dreamerbuild.com/embed?team=real-madrid&formation=4-3-3" title="Real Madrid starting XI – DreamerBuild" width="100%" height="560" style="border:0;max-width:960px;border-radius:12px" loading="lazy" allow="clipboard-write; web-share"></iframe> <p style="font:13px/1.4 system-ui,sans-serif;margin:6px 0 0">Real Madrid starting XI · Built with <a href="https://dreamerbuild.com/en/team/real-madrid-lineup-builder">DreamerBuild</a></p>
What an embedded lineup gives you
- Readers stay on your page. The lineup appears inside your article; nobody has to leave to see it.
- Just the lineup, clean and light. Pitch theme, player cards and formation come through exactly as you set them; your article shows the lineup itself, not a busy tool. An "Open in DreamerBuild" button lets readers take the same lineup and build their own version.
- Free, no account. You do not need to sign up to get the code.
- No ads inside the embed. Our ads never appear inside your page.
Step by step: getting the code
- 1Open the lineup builder and pick a team. You can start from a real squad, for example the Real Madrid lineup builder or the Barcelona lineup builder.
- 2Set your starting XI, formation and pitch theme. You can add transfers too.
- 3Press the Share button.
- 4In the window that opens, find "Embed on your site" below the share link and press Copy code.
- 5Paste the code into your site's HTML editor and publish.
Adding it to WordPress, Blogger and Wix
WordPress (block editor)
Add a new block where you want the lineup, choose Custom HTML and paste the code into it. Check it in the Preview tab, then update the post.
Blogger
In the post editor switch to HTML view with the pencil icon at the top left, paste the code on the line where the lineup should appear, switch back to Compose view and publish.
Wix
In the editor go to Add → Embed Code → Embed HTML, paste the code into the box and resize the frame to suit your page.
Changing the size
By default the iframe in the code fills the width of your page (up to 960 pixels) and is 560 pixels tall. To make it shorter or taller, change the `height="560"` value in the code. On phones the width shrinks to fit the screen automatically.
Frequently asked questions
Can readers change the embedded lineup?
No. The embedded lineup is view-only: every visitor sees the version you copied. Readers who want to change it press "Open in DreamerBuild" to open the same lineup in a new tab and build their own version there; the lineup on your page stays the same.
Which teams can I embed?
Embedding works in the "Teams" mode, so you can embed any club or national team squad in the builder, from the Premier League and La Liga to Serie A and the Süper Lig. The teams page lists every club available.
Can I remove the "Built with DreamerBuild" line under the lineup?
The code lives on your site, so it is your call. Keeping the line shows readers where the lineup came from so they can build their own, and it helps us keep the tool free.
Starting shapes to try on the pitch
Open this setup, then change the players and make it your own.
Open this setup, then change the players and make it your own.
Build a lineup and embed it
Pick your team, set your XI, then use Share → Embed on your site to get the code.
More articles
7 mistakes people make building a dream lineup (and why the best XI isn’t the best team)
Putting eleven stars on a pitch is easy. Turning them into a team is the hard part. The seven traps everyone falls into when building a lineup, and how to avoid them.
We simulated Beşiktaş v Galatasaray 1,000 times: who has the edge at Tüpraş?
Ahead of the 30 November derby we played Beşiktaş v Galatasaray a thousand times at each of three venues: win rates, common scores, top scorers and home advantage.
4-3-3 vs 4-2-3-1: which formation fits your players?
Compare 4-3-3 and 4-2-3-1 with pitch diagrams, midfield roles and a worked example. Open either shape in the lineup builder and adapt it to your XI.