iFrame – Responsive Website, Video & Map Embed Block
iFrame is a powerful WordPress Gutenberg block plugin that revolutionizes the way you embed iframes. With features like customizable titles, versatile loading behaviors, full-screen activation, and precise layout controls, iFrame offers an intuitive and dynamic solution for integrating iframes into your content. Elevate the visual appeal of your iframes with additional design options, allowing you to apply borders and shadows effortlessly.
Features
- Title: Specify the title for the iframe.
- Loading Behavior: Configure the loading behavior.
- Full Screen: Activate Full Screen to enable the iframe in full-screen mode.
- Layout: Define the width and height for the iframe.
- Design: Apply borders and shadows to enhance the iframe’s visual appearance.
How to use
- First, install the iFrame plugin
- Add the iFrame block from the block category called ‘Media’ in the Gutenberg editor.
- You can change block settings from the right-side settings sidebar.
-
Enjoy!
-
For installation help click on Installation Tab.
Feedback
- Did you like this plugin? Dislike it? Do you have a feature request? Please share your feedback with us
Check out the Parent Plugin of this plugin-
B Blocks – A blocks collection and page building tool for Gutenberg.
Check out our other WordPress Plugins-
Html5 Video Player – Display videos as single and playlist in multiple skins.
PDF Poster – Display/Embed PDF files with different styles.
Html5 Audio Player – Listen audios with awesome visuals.
StreamCast – Customizable radio player with different skins.
3D Viewer – Embed 3D models and 3D products with interaction.
Advanced Post Block – Show posts and custom posts in different layouts.
ShortCode
Use the following ShortCode to embed an iframe.
[iframe src='https://bplugins.com' title='bPlugins Website' width='100%' height='800px' loading='auto' border_width='2px' border_style='solid' border_color='#146EF5' border_radius='8px']Source Code
The complete, un-minified source code for this plugin’s JavaScript and CSS is included in the src/ directory of the plugin, and is also available on GitHub:
iFrame on GitHub
Build instructions
The compiled files in build/ are generated from src/ using @wordpress/scripts (webpack). To build them yourself:
- Install Node.js (18+) and npm.
- From the plugin directory, run
npm installto install the build dependencies (seepackage.json). - Run
npm run buildto compilesrc/into the minified files inbuild/. - Run
npm startinstead for a development build with file watching.
The build tooling is configured in package.json and webpack.config.js. The full development setup, including the linting configuration, is available in the GitHub repository linked above.
Third-Party Libraries
This plugin bundles the following third-party JavaScript/PHP libraries.
bpl-tools
- Source / GitHub: https://github.com/bPlugins/bpl-tools
- License: GPL-2.0-or-later – https://www.gnu.org/licenses/gpl-2.0.html
- Purpose: Shared utility library providing admin dashboard components and common Gutenberg editor controls.
- External Services: The library may connect to bPlugins, WordPress.org, and Freemius services for product data and checkout functionality. See full details: https://github.com/bPlugins/bpl-tools#external-requests–why-they-are-made
