
This enables your advertising partners to easily provide and maintain the content they’re paying to display on your site. Many sidebar and banner ads are actually iFrames. The primary purpose of an iFrame for most non-developer WordPress users is to display third-party content on your site. As such, make sure you’re using up-to-date information when hand-coding your iFrames. It’s important to note that there are many iFrame attributes not supported by HTML5 (such as scrolling). You could incorporate other attributes to enable feature policies ( allow), fullscreen mode ( allowfullscreen), payments ( allowpaymentrequests), and more.

In this case, the tag includes the URL of the page to be displayed, and the height and width of the window in pixels. However, there are also other attributes you can incorporate to specify the dimensions of the “window” itself.įor instance, here’s the code for the simple example iFrame in the screenshot above: The more technical way to describe it is a HTML document embedded inside another HTML document:Ĭode-wise, every iFrame includes HTML tags as well as an src attribute to help indicate the location of the content you want to embed on your site. You can think of an inline frame (or iFrame) as a window on your web page looking out on another piece of online content. Subscribe To Our Youtube Channel What Is an iFrame?
Wordpress iframe how to#
We’ll also discuss this element’s benefits for WordPress users, and show you how to easily incorporate it via some of our Divi Builder Modules.

In this post, we’ll explain what an iFrame is and when it’s best to use one. Fortunately, there’s a HTML element called an iFrame to help you do this. With websites becoming more complex, it only makes sense that WordPress users would need a means of displaying third-party content on their own pages.
