Warning: Illegal string offset 'src' in /var/www/html/wp-content/plugins/iframe/iframe.php on line 30

Warning: Illegal string offset 'width' in /var/www/html/wp-content/plugins/iframe/iframe.php on line 30

Warning: Illegal string offset 'height' in /var/www/html/wp-content/plugins/iframe/iframe.php on line 30

Warning: Illegal string offset 'scrolling' in /var/www/html/wp-content/plugins/iframe/iframe.php on line 30

Warning: Illegal string offset 'class' in /var/www/html/wp-content/plugins/iframe/iframe.php on line 30

Warning: Illegal string offset 'frameborder' in /var/www/html/wp-content/plugins/iframe/iframe.php on line 30

Warning: Invalid argument supplied for foreach() in /var/www/html/wp-content/plugins/iframe/iframe.php on line 36

Warning: Illegal string offset 'src' in /var/www/html/wp-content/plugins/iframe/iframe.php on line 30

Warning: Illegal string offset 'width' in /var/www/html/wp-content/plugins/iframe/iframe.php on line 30

Warning: Illegal string offset 'height' in /var/www/html/wp-content/plugins/iframe/iframe.php on line 30

Warning: Illegal string offset 'scrolling' in /var/www/html/wp-content/plugins/iframe/iframe.php on line 30

Warning: Illegal string offset 'class' in /var/www/html/wp-content/plugins/iframe/iframe.php on line 30

Warning: Illegal string offset 'frameborder' in /var/www/html/wp-content/plugins/iframe/iframe.php on line 30

Warning: Invalid argument supplied for foreach() in /var/www/html/wp-content/plugins/iframe/iframe.php on line 36

The Iframe Plugin allows Forge administrators to embed content from another website on their site using an iframe. Common use cases include embedding external video or a Google calendar. For security reasons, WordPress restricts the use of certain HTML tags including iframe and script.

Enabling the Iframe Plugin

If you would like to use the Iframe Plugin please contact the Help Desk. A member of the Web Content Management team will reach out to you and activate the plugin on your site.

Using the Iframe Plugin

If the Iframe Plugin is activated on your site, you may use the [iframe] shortcode to embed an external website’s content on your site. You should only do this with a website whose content you trust. In this example, we will embed a YouTube video (see Adding and editing content in WordPress for better ways to embed video).

  1. Obtain the embed code for the website. It will look something like this: <iframe width="560" height="315" src="https://www.youtube.com/embed/VHN2Ytl07lE" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
  2. Refactor the embed code for use with the iframe shortcode. In general, this means replacing the <iframe></iframe> tags with a single bracketed [iframe] tag. An empty parameter like allowfullscreen should be written as allowfullscreen=””. In our example, the reformatted shortcode looks like this: [iframe width="560" height="315" src="https://www.youtube.com/embed/VHN2Ytl07lE" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen=""]
Tagged in: