WordPress.org

Ready to get started?Download WordPress

Plugin Directory

iframe

[iframe src="http://www.youtube.com/embed/A3PDXmYoF5U" width="100%" height="480"] shortcode

Other Notes

iframe params:

  • src - source of the iframe [iframe src="http://www.youtube.com/embed/A3PDXmYoF5U"] (by default src="http://www.youtube.com/embed/A3PDXmYoF5U");
  • width - width in pixels or in percents [iframe width="100%" src="http://www.youtube.com/embed/A3PDXmYoF5U"] or [iframe width="640" src="http://www.youtube.com/embed/A3PDXmYoF5U"] (by default width="100%");
  • height - height in pixels [iframe height="480" src="http://www.youtube.com/embed/A3PDXmYoF5U"] (by default height="480");
  • scrolling - parameter [iframe scrolling="yes"] (by default scrolling="no");
  • frameborder - parameter [iframe frameborder="0"] (by default frameborder="0");
  • marginheight - parameter [iframe marginheight="0"] (removed by default);
  • marginwidth - parameter [iframe marginwidth="0"] (removed by default);
  • allowtransparency - allows to set transparency of the iframe [iframe allowtransparency="true"] (removed by default);
  • id - allows to add the id of the iframe [iframe id="my-id"] (removed by default);
  • class - allows to add the class of the iframe [iframe class="my-class"] (by default class="iframe-class");
  • style - allows to add the css styles of the iframe [iframe style="margin-left:-30px;"] (removed by default);
  • same_height_as - allows to set the height of iframe same as target element [iframe same_height_as="body"], [iframe same_height_as="div.sidebar"], [iframe same_height_as="div#content"], [iframe same_height_as="window"] - iframe will have the height of the viewport (visible area), [iframe same_height_as="document"] - iframe will have the height of the document, [iframe same_height_as="content"] - auto-height feature, so the height of the iframe will be the same as embedded content. [same_height_as="content"] works only with the same domain and subdomain. Will not work if you want to embed page "sub.site.com" on page "site.com". (removed by default);
  • get_params_from_url - allows to add GET params from url to the src of iframe; Example: page url - site.com/?prm1=11, shortcode - [iframe src="embed.com" get_params_from_url="1"], iframe src - embed.com?prm1=11 (disabled by default);
  • any_other_param - allows to add new parameter of the iframe [iframe any_other_param="any_value"];
  • any_other_empty_param - allows to add new empty parameter of the iframe (like "allowfullscreen" on youtube) [iframe any_other_empty_param=""];

Requires: 3.0 or higher
Compatible up to: 3.9.1
Last Updated: 2014-7-6
Downloads: 334,639

Ratings

4 stars
4.5 out of 5 stars

Support

3 of 12 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

1 person says it works.
0 people say it's broken.

0,1,0
100,2,2 100,1,1 100,1,1 100,1,1 100,1,1 0,1,0
100,1,1 100,1,1 100,1,1 100,1,1
100,1,1 100,1,1 100,1,1
100,1,1 100,1,1 100,1,1
100,1,1 100,1,1 100,1,1
100,1,1 100,1,1 100,1,1
100,1,1 100,1,1 100,1,1 100,1,1 100,1,1
100,2,2 100,1,1 100,1,1 100,1,1 100,1,1
100,2,2 100,3,3 100,1,1 100,1,1 100,1,1
100,1,1 100,1,1 100,2,2 100,2,2
67,3,2
100,3,3 100,1,1 100,1,1 100,5,5 100,2,2
100,1,1 100,1,1 100,1,1 100,2,2 100,1,1 100,1,1
100,2,2 100,4,4 100,1,1
100,3,3 100,1,1
33,3,1 100,1,1 100,1,1 100,1,1
100,4,4 100,2,2 100,1,1 100,1,1 100,1,1
100,1,1 100,4,4 100,1,1 100,3,3
100,5,5 100,1,1 100,1,1
100,5,5 100,4,4 33,3,1
100,3,3
100,1,1
100,2,2
100,1,1
100,2,2
100,1,1 100,1,1
100,1,1 100,1,1
100,1,1
100,1,1
100,3,3 100,1,1
100,1,1