=== Iframe Block – Easy Embed Block for YouTube, Vimeo & More ===
Contributors: WPXERO
Tags: iframe, youtube, embed, vimeo, block-editor, google-maps
Stable tag: 1.0.2
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0.html

Embed responsive YouTube, Vimeo, Google Maps, and other HTTPS iframes from the Block Editor. Optional visible captions, iframe titles, semantic figure markup, noscript link fallback, and lazy-loading.

== Description ==

**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.

== Installation ==

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.

== Frequently Asked Questions ==

= 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.

== Screenshots ==

1. Block placeholder and URL field in the editor.
2. Inspector settings: URL, title, caption, height, lazy-load, sandbox.
3. Front-end output with optional caption under the iframe.

== Changelog ==


= 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

== Upgrade Notice ==

= 1.0.2 =
Adds optional SEO captions, semantic figure markup, and a noscript fallback link for embeds.
