Categories

  • Access & Security 95
  • Administration 172
  • Advertisement 92
  • Audio & Video 66
  • Author & Content 99
  • Comments 96
  • Communication 110
  • Communities & Forums 84
  • Development 47
  • E-Commerce 76
  • Email Management 53
  • Events & Calendars 80
  • Language 25
  • Map & Weather 44
  • Migration & Conversion 28
  • Miscellaneous 254
  • Mobile 15
  • Photos 143
  • Plugins 260
  • SEO & Site Speed 118
  • Social 186
  • Theme Enhancement 169



  • Add this plugin to a List

    You need to be logged in to add this plugin to your list.

    iframe

    Add to List

    Speedup WordPress |
    Advanced iFrame Pro |
    iframe |
    Donate |
    GitHub

    [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 shortcode.
    shortcode is a core WordPress feature and can embed content from many resources via direct link.

    Useful:

    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=""];
    Rate This Plugin

    Please Login to Rate this Plugin!

    Function

    Feature

    Support

    0 Votes
    Not Rated Yet

    Wordpress.org Stats

    Ratings4.5
    Votes46
    Downloads776,141
    Last Updated487 Days ago
    Published6 years ago

    Report Wrong Category!