Skip to content
Sign in

Iframe Block – Easy Embed Block for YouTube, Vimeo & More

Embed responsive YouTube, Vimeo, Google Maps and other iframes from the block editor, with captions, aspect ratios, privacy mode and lazy-loading.

Not scanned yet WordPress plugin 10 installs

Install in

No install steps yet

Follow the steps on the source page.

Iframe Block adds one dedicated block for every external embed that has no first-party core block: videos, maps, audio players, dashboards, booking tools, donation widgets, LMS players, calendars and forms.

Paste a link, pick a ratio, publish. The block converts YouTube and Vimeo links to their proper player URLs automatically, so a plain youtu.be/… share link or a Vimeo unlisted link just works.

What you get

  • Responsive aspect ratios — 16:9, 4:3, 1:1, 21:9 and 9:16 reserve the space before the embed loads, so nothing jumps around while the page renders. Fixed pixel heights are still available for maps, forms and dashboards.
  • Smart URL handling — YouTube watch, share, Shorts, live and embed links, playlists and start times (?t=1m30s) are normalised. Vimeo watch, channel, group and unlisted (hash) links become proper player URLs.
  • Privacy mode — one toggle switches YouTube to youtube-nocookie.com, so no viewing cookies are set until playback starts.
  • Lazy-loading that behaves — each block gets its own load margin, embeds load once and never reload on scroll, and the small helper script is only enqueued on pages that actually contain a lazy embed. Optional “watch for dynamic content” also covers embeds inserted later by sliders, tabs or infinite scroll.
  • SEO and accessibility markup — semantic figure / figcaption, a required accessible title on every iframe, and a noscript fallback link to the embed for crawlers and script-less visitors.
  • Safe by default — only http(s) URLs are accepted, inline styles are filtered for known XSS vectors, sandbox tokens are validated, and referrerpolicy="strict-origin-when-cross-origin" is always set.

Pair it with your SEO plugin (Yoast, Rank Math, SEOPress, AIOSEO, The SEO Framework) for meta tags, schema and sitemaps.

Written by Joobi from the project's own listing. See the source page

embedGoogle Mapsiframevimeoyoutube
20 Nov 2026
Version 1.1.1 released. Not scanned yet.

1.1.1

  • Fixed: the “Plugin Homepage” link pointed to a GitHub address that does not exist; it now points to the plugin page on wpxero.com.
  • Fixed: removed the Domain Path header, which pointed to a languages folder that was never shipped. Translations come from WordPress.org language packs, which WordPress loads automatically.
  • Fixed: “Full width” embeds now reach both edges of the screen instead of stopping short on the right.
  • Fixed: vertical (9:16) embeds are sized to fit on screen and centred, instead of growing taller than the window.
  • Fixed: a block published without a usable URL no longer leaves an empty gap on the page.
  • Fixed: a border added through Inline style no longer pushes the embed past the content column.
  • Changed: the “Allow fullscreen” switch is removed. It had no effect, because embeds always allow fullscreen.
  • Changed: the block’s “Advanced” panel is renamed “Iframe element”, with clearer labels, so it is no longer confused with WordPress’s own Advanced panel.
  • Changed: an embed without a title now opens the SEO & accessibility panel with a reminder to add one for screen reader users.
  • Changed: clearer wording under the URL field in the block placeholder.
  • Removed: an unused loader image left over from earlier versions.
  • No changes to block markup or settings.

1.1.0

Fixed

  • Lazy-loaded embeds with “live observe” enabled reloaded themselves every time they scrolled back into view. Embeds now load exactly once.
  • The load margin is applied per block again. Previously the largest value on the page was applied to every lazy embed, with a hidden 50px minimum.
  • “Live observe” now does what it promises: it detects embeds inserted after page load (sliders, tabs, AJAX) instead of only re-observing existing ones. Renamed to Watch for dynamic content.
  • URLs from other hosts that merely looked like YouTube links (any /embed/<11 characters> path) were rewritten to YouTube. Detection is now host-based.
  • Vimeo channel, group, player and unlisted (hash) links are recognised instead of being embedded as a page that refuses framing.
  • YouTube start times (?t=90, ?t=1m30s) and playlists are preserved in the embed URL.
  • The block icon no longer renders as an 800px hard-coded black square; it inherits the editor colour.
  • Editor strings are now translatable at runtime (wp_set_script_translations was missing).
  • The render_block filter no longer type-hints its arguments, which could fatal when another plugin returned null, and the lazy helper script is only enqueued for genuinely lazy embeds.
  • Typing an unusable URL now shows an inline error instead of silently rendering an empty frame.

Added

  • Responsive aspect ratios: 16:9, 4:3, 1:1, 21:9, 9:16.
  • Privacy mode for YouTube (youtube-nocookie.com).
  • Replace URL toolbar button, provider badge, and inline validation in the editor.
  • Block deprecation support, so future markup changes cannot invalidate existing posts.
  • Skeleton placeholder while a lazy embed waits for the viewport (respects prefers-reduced-motion).

Changed

  • Requires WordPress 6.5 or newer (block API v3).
  • The front-end helper script is loaded with defer.
  • Build tooling updated to @wordpress/scripts 34 and ESLint 9 flat config.
  • allow now includes fullscreen; data-live is only emitted on lazy embeds.

1.0.4

  • Compatibility: tested with WordPress 7.1 (block API v3, no deprecated APIs in use).
  • Compatibility: verified alongside Elementor 4.1 and WooCommerce 10.8 — the block renders unchanged inside Elementor’s block widget and on WooCommerce templates.
  • Housekeeping: plugin header now declares Tested up to; block and package versions synced to the plugin version.
  • No functional or markup changes.

1.0.3

  • Updated @wordpress/scripts and development dependencies; rebuilt block editor assets.

1.0.2

  • SEO improvements: optional caption as <figcaption>, <figure> wrapper, <noscript> HTTPS link fallback, expanded block keywords and readme tags for discoverability.
  • WordPress 7.0 readiness; PHP 7.4 minimum; hardened URLs; fixed YouTube detection; native lazy-load + IntersectionObserver; scoped front-end script; i18n bootstrap.

1.0.1

  • Compatibility updates for WordPress 6.8
  • Minor improvements and optimizations

1.0.0

  • Initial release with core features
12 Dec 2023Listed on Joobi from WordPress.org.

Follow this listing's changes (Atom feed)