You can test your mod by entering some iFrame code in the editor window and switching between the visual and HTML editor. Once activated, you can follow the settings given in the plugin to embed the content on your site. Have a look at a few of the plugins and install any one of them.
this function alters the way the WordPress editor filters your codeĪdd_filter('tiny_mce_before_init', 'add_iframe') How to embed an iFrame in WordPress Using Plugins There are plugins available in the official WordPress repository to embed iFrame in WordPress. this function initializes the iframe elements Play with its available functionalities and modify the overall catalog of the site. It’s features will make you even more enthusiastic in using the plugin and reap more benefits. Instead, why not search for a WordPress iframe resizer plugin The result, within 5 minutes I had a perfect auto-resizing iframe working - and it was so easy I almost feel sick with how much time I wasted on the previous methods. Visitors can copy the embedded content and reshare them in other places.
Firstly, we can share the content of others without having to worry too much about getting involved in potential copyright-related issues. You’ll want to insert the following lines of code before the closing “?>” of your functions.php file. Simple Iframe is the best and simple plugin that will let you build product listing catalog in any part of a website. As WordPress site owners, we need iFrames for 2 main purposes.
Next, we are going to add two short functions that change the way the WordPress editor handles iFrame code. It’s a standard WordPress file, so it’ll be there. You’ll need to find the functions.php file in your active theme folder. If you have ever tried to enter a Google Map embed into a WordPress page or post, you’ve noticed that switching between “Visual” and “HTML” view in the page or post edit window strips the iFrame out–leaving you with broken code that displays nothing. Elements like Google Map embeds get stripped out.