Lafayette CollegeTechnology Help
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.
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.
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).
<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>
<iframe></iframe>
tags with a single-bracketed iframe tag ([ + iframe + parameters + ]). 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=""]