WordPress iFrame and How to embed Video and content in WordPress?
Yuhda Ibrahim
Development Consultant
February 10, 2026
4 min read
Introduction
Have you ever wanted to add a YouTube video, Google Map, or even another webpage directly onto your WordPress site without making things complicated? That’s exactly where WordPress iFrame and how to embed video and content in WordPress comes in handy.
Think of an iFrame like a window on your site—it doesn’t copy the content, it just shows it. This means you can pull in videos, maps, forms, or even entire pages from another source and display them seamlessly inside your posts or pages. It’s a quick and user-friendly way to make your website more interactive without heavy coding or complex plugins.
The best part? Once you understand the basics, embedding content is as easy as pasting a snippet of code or using WordPress’s built-in blocks. In this guide, we’ll walk through what an iFrame is, when to use it, and different ways to embed videos and content into your WordPress site.

What is an iFrame in WordPress?
An iFrame (Inline Frame) is a piece of HTML code that allows you to display external content inside your WordPress page. Instead of uploading a video or map directly, you use an iFrame to “frame” it from another site.
For example:
- Embedding a YouTube video without downloading it.
- Displaying a Google Map location on your contact page.
- Showing an external form (like from Typeform or Google Forms).
So, instead of saying “Click here to view,” you can keep visitors on your site while showing them extra content.
Why Use WordPress iFrame for Embedding?
You might wonder—why not just upload everything directly? Here’s why iFrames make sense:
- Saves storage space – No need to upload large video files.
- Keeps content updated – If the original source changes, it updates automatically on your site.
- Interactive features – Maps, forms, and videos work exactly as they do on the original site.
- Better user experience – Visitors don’t have to leave your page to see what you’re showing.
This makes your site more engaging without slowing it down.
How to Embed Video in WordPress Using iFrame
Videos are one of the most common things to embed. Let’s see the easiest ways to do it.
Option 1: Copy and Paste Embed Code
Most video platforms (like YouTube, Vimeo, or Dailymotion) provide an embed code.
- Go to the video you want to embed.
- Click Share → Embed.
- Copy the
<iframe>code provided. - In WordPress, switch to the Custom HTML block and paste the code.
Done! Your video will appear right on your page.
Option 2: Use WordPress Auto-Embed
If you just paste a YouTube or Vimeo URL into the WordPress editor, WordPress automatically embeds the video—no need to copy code. This is a simpler option, but iFrames give you more control (like setting width/height).
How to Embed Other Content with iFrame
Videos aren’t the only thing you can embed. Let’s look at other content you might want to add.
Embedding Google Maps
- Open Google Maps and find your location.
- Click Share → Embed a Map.
- Copy the
<iframe>code. - Paste it into your WordPress post/page using the Custom HTML block.
Now visitors can interact with the map without leaving your site.
Embedding Forms
If you’re using external form tools (Typeform, Google Forms, or Jotform):
- Get the embed code from the platform.
- Paste it into WordPress.
This is handy if you don’t want to install extra plugins just for forms.
Embedding Entire Pages
Yes, you can even embed another webpage inside yours using iFrame. For example:
<iframe src="https://example.com" width="100%" height="500"></iframe>
This could be useful for showing partner sites or documentation without redirecting users.
Tips for Using iFrames in WordPress
While iFrames are useful, here are some tips to keep things smooth:
- Make it responsive – Always set width to
100%so the content adapts to mobile screens. - Check loading speed – Too many iFrames can slow down your site.
- Use sparingly – Only embed what adds value (videos, maps, forms).
- Security matters – Only embed from trusted sources to avoid security risks.
- Style with CSS – You can add custom CSS to adjust the look of embedded content.
When Should You Avoid iFrames?
iFrames are great, but not always the best choice. Avoid them when:
- You want full SEO benefit (Google may not always read iFrame content).
- You’re embedding from an unreliable or unknown source.
- The embedded content is heavy and slows down your page.
In those cases, uploading directly or using a plugin might be better.
Alternative to iFrames: WordPress Blocks and Plugins
If you don’t want to deal with HTML code, WordPress offers Gutenberg blocks like:
- Video block (for YouTube, Vimeo, etc.)
- Embed block (works with many services like Twitter, Spotify, TikTok).
There are also plugins such as:
- Advanced iFrame – Gives you more control over embeds.
- EmbedPress – Supports 100+ platforms for easy embedding.
These tools simplify the process while still giving flexibility.
Conclusion
Using WordPress iFrame and how to embed video and content in WordPress is a simple but powerful way to make your site more engaging. Whether you’re adding a YouTube video, a Google Map, or even a form, iFrames let you bring in external content without making your site heavy or complicated.
Just remember: use responsive settings, stick to trusted sources, and don’t overload your page with too many embeds. When done right, iFrames enhance the user experience and keep visitors interacting with your content longer.
👉 Ready to try it out? Start by embedding a simple YouTube video or Google Map today and see how it transforms your page!