WordPress.org

Plugin Directory

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

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

外掛說明

WPXero Iframe adds a dedicated Gutenberg block for external embeds that do not ship a first-party Core block. Use it for videos, maps, audio players, dashboards, booking tools, donation widgets, LMS players, and other iframe-friendly services.

Why this helps SEO and discoverability

  • Editor & directory search — The block title, description, and keyword list match how people look for “iframe block”, “youtube embed”, “maps embed”, “Gutenberg embed”, and similar queries.
  • On-page context — An optional caption is output as a real <figcaption> under the embed so your page still has indexable text explaining what visitors are seeing.
  • Accessible names — Encourages a descriptive title attribute on the iframe for assistive technology and clearer browser behavior.
  • Crawler-friendly fallback — A <noscript> block includes a plain link to the sanitized HTTPS embed URL when scripts are off, so bots can still discover the destination.
  • Performance — Lazy-load mode only loads the small front-end helper script when that option is enabled.

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

適用於區塊編輯器

這個外掛提供 1 個可供 Gutenberg/區塊編輯器使用的區塊。

  • Iframe & embed (YouTube, Vimeo, maps) Embed responsive HTTPS iframes for YouTube, Vimeo, Google Maps, audio, booking tools, and more. Add an optional visible caption and accessible title for SEO and screen readers.

安裝方式

  1. Install and activate the plugin from Plugins > Add New or upload the ZIP.
  2. Edit a post or page in the block editor.
  3. Insert Iframe & embed (YouTube, Vimeo, maps) or search for “iframe”.
  4. Paste an HTTPS URL. Add Title (accessibility) and Visible caption (SEO) when it helps explain the embed.

常見問題集

Will this make my iframe rank in Google?

Search engines evaluate the page you publish plus the reputation and content of the framed URL. This block improves your page by adding surrounding text (caption), semantics (figure/figcaption), and optional noscript links—it does not replace a full SEO strategy.

Is the caption required?

No. It is optional but recommended when the embed needs context for readers or search snippets.

Does the plugin add JSON-LD schema?

No. Use your SEO plugin or theme for structured data; this block focuses on semantic HTML around the iframe.

Does lazy-loading help Core Web Vitals?

Deferring heavy third-party frames can help when tested responsibly. Measure with Lighthouse or your RUM tool after publishing.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Iframe Block – Easy Embed Block for YouTube, Vimeo & More〉的開發相關工作。

參與者

變更記錄

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