Auto iFrame
A quick and easy shortcode to embed iframe's that resize to the content of the remote site.
The facts
- Rating
- 3.6★ from 18
- Active installs
- 3k+
- Price
- Free
- Last updated
- 2 Dec 2024
- Added
- Mar 2015
- Requires WP
- 3.0
- Tested up to
- WP 6.6.7
- Downloads
- 89,307
Our analysis
AI-assistedAuto iFrame is a WordPress plugin that allows you to easily embed iframes that resize according to the content of the remote site. It uses a shortcode format where you can specify the link, tag, width, height, and whether to enable auto-sizing. This makes it suitable for users who need to display external content within their WordPress site without manual adjustments to iframe dimensions.
The plugin includes options for setting the iframe's dimensions and behaviour, such as enabling borders and scroll bars. However, it is important to note that auto-resizing does not work for cross-domain sites due to browser security restrictions.
Best for: This plugin is best for WordPress users looking to embed content from external sources easily.
What it does well
- ✓Free to use from the WordPress.org directory
- ✓Easy shortcode format for embedding iframes
- ✓Supports auto-sizing based on content
- ✓Allows customisation of width and height
- ✓Compatible with Shortcode UI
Where it falls short
- •Auto resizing does not work for cross-domain sites
- •Limited information on additional features
Verdict
Auto iFrame provides a straightforward solution for embedding iframes, though its functionality is limited by browser security for cross-domain content.
From the developer
Greg Ross's own description of Auto iFrame, lightly tidied.
A quick and easy shortcode to embed iframe’s that resize to the content of the remote site.
Auto iFrame shortcode is in the format of:
[auto-iframe link=xxx tag=xxx width=xxx height=xxx autosize=yes/no]
Where:
- link = the url of the source for the iFrame. REQUIRED.
- tag = a unique identifier in case you want more than one iFrame on a page. Default = auto-iframe.
- width = width of the iFrame (100% by default). Can be % or px. Default = 100%.
- height = the initial height of the iframe (100% by default). Can be % or px. Default = 100%.
- autosize = enable the auto sizing of the iFrame based on the content. The initial height of the iFrame will be set to “height” and then resized. Default = true.
- fudge = a fudge factor to apply when changing the height (integer number, no “px”). Default = 50.
- border = enable the border on the iFrame. Default = 0.
- scroll = enable the scroll bar on the iFrame. Default = no.
- query = pass the parent’s page query string to the iFrame. Default = no.
Note: Auto re-sizing of the iFrame for cross domain sites does not work, this is a security protection provided by the browser and there is no way around it.
Now supports (Shortcode UI)[https://github.com/fusioneng/Shortcake] (aka Shortcake)!