Plugin / iframe

webvitaly

Description

Description

[iframe src=”http://www.youtube.com/embed/4qsGTXLnmKs” width=”100%” height=”500″] shortcode
should show something like this:

WordPress removes iframe html tags because of security reasons.
Iframe shortcode is the replacement of the iframe html tag and accepts the same params as iframe html tag does.
You may use iframe shortcode to embed content from YouTube, Vimeo, Google Maps or from any external page.

If you need to embed content from YouTube, Vimeo, SlideShare, SoundCloud, Twitter via direct link, you may use [embed]http://www.youtube.com/watch?v=4qsGTXLnmKs[/embed] shortcode.
[embed] shortcode is a core WordPress feature and can embed content from many resources via direct link.

Important: You can not embed HTTP pages into HTTPS pages and vice versa.
So the protocol (http or httpS) for parent and embedded page should match.

iframe params:

  • src – source of the iframe: [iframe src="http://www.youtube.com/embed/4qsGTXLnmKs"]; by default src=”http://www.youtube.com/embed/4qsGTXLnmKs”;
  • width – width in pixels or in percents: [iframe width="100%"] or [iframe width="600"]; by default width=”100%”;
  • height – height in pixels: [iframe height="500"]; by default height=”500″;
  • scrolling – with or without the scrollbar: [iframe scrolling="no"]; by default scrolling=”yes”;
  • frameborder – with or without the frame border: [iframe frameborder="0"]; by default frameborder=”0″;
  • marginheight – height of the margin: [iframe marginheight="0"]; removed by default;
  • marginwidth – width of the margin: [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="custom_id"]; removed by default;
  • class – allows to add the class of the iframe: [iframe class="custom_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="div.sidebar"], [iframe same_height_as="div#content"], [iframe same_height_as="body"], [iframe same_height_as="html"]; removed 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=""];

Ratings

4.5
48 reviews

Rating breakdown

Details Information

Version

4.4

First Released

28 Apr, 2011

Total Downloads

1,022,192

Wordpress Version

3.0 or higher

Tested up to:

5.2.4

Require PHP Version:

-

Tags

Contributors

Languages

The plugin hasn't been transalated in any language other than English.

DIRECTORY DISCLAIMER

The information provided in this THEME/PLUGIN DIRECTORY is made available for information purposes only, and intended to serve as a resource to enable visitors to select a relevant theme or plugin. wpSocket gives no warranty of any kind, express or implied with regard to the information, including without limitation any warranty that the particular theme or plugin that you select is qualified on your situation.

The information in the individual theme or plugin displayed in the Directory is provided by the owners and contributors themselves. wpSocket gives no warranty as to the accuracy of the information and will not be liable to you for any loss or damage suffered by you as a consequence of your reliance on the information.

Links to respective sites are offered to assist in accessing additional information. The links may be outdated or broken. Connect to outside sites at your own risk. The Theme/Plugin Directory does not endorse the content or accuracy of any listing or external website.

While information is made available, no guarantee is given that the details provided are correct, complete or up-to-date.

wpSocket is not related to the theme or plugin, and also not responsible and expressly disclaims all liability for, damages of any kind, arising out of the use, reference to, or reliance on, any information or business listed throughout our site.

Keep Leading Your Followers!
Share it for them.