iFrame i WordPress?

Uppdaterad

Does iFrame work in WordPress?
Yes, iFrame works in WordPress. To add iFrame to WordPress, you can use a number of different methods, such as Embed Blocks, HTML, shortcode, or plugins. Simply copy and paste the embed code into one of these elements to add iFrame to your WordPress website.
While the WordPress Block Editor does not have a default block for adding iFrames, there are a number of plugins that support adding iFrames to your WordPress posts and/or pages. Using a block would be the preferred method for adding an iFrame to the page.
If you do not already have a plugin with an iFrame or HTML block installed on your WordPress site, blocks can be searched and installed directly from the block editor. Alternatively, you can install the plugin using the WordPress admin dashboard and then return to editing your page/post.
If your website is using the classic editor, as opposed to the newer block editor, then you can add iFrames to your pages and posts using a shortcode, which is provided by a number of plugins. Similar to the iFrame or HTML blocks mentioned above, a shortcode can be used to add an iFrame to your website.1. Add an HTML block to your page.
2. Paste in your embed code.
3. Save and publish your changes.

warning Created with Sketch.