Developers
webvitaly |
Download Stats
Today | 162 |
Yesterday | 228 |
Last Week | 1,592 |
All Time | 838,654 |
- Advanced iFrame Pro
- iframe
- Donate
- GitHub
[iframe src="http://www.youtube.com/embed/oDlbBy9vfgI" width="100%" height="500"] shortcode should show something like this:
[youtube http://www.youtube.com/watch?v=oDlbBy9vfgI]
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=oDlbBy9vfgI[/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/oDlbBy9vfgI"]
; by default src="http://www.youtube.com/embed/oDlbBy9vfgI"; -
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=""]
;
Releases (26 )
Version | Release Date | Change Log |
---|---|---|
4.5 | 2020-04-23 |
|
4.4 | 2018-12-31 |
|
4.3 | 2018-03-08 |
|
4.2 | 2016-03-14 |
|
4.1 | 2015-08-11 |
|
4.0 | 2015-08-11 |
|
3.0 | 2015-01-26 |
|
2.9 | 2014-12-26 |
|
2.8 | 2014-04-12 |
|
2.7 | 2013-06-09 |
|
2.6 | 2013-04-14 |
|
2.5 | 2012-11-03 |
|
2.4 | 2012-10-30 |
|
2.3 | 2012-09-09 |
|
2.2 | 2012-04-12 |
|
2.1 | 2012-01-15 |
|
2.0 | 2012-01-01 |
|
1.8 | 2012-01-01 |
|
1.7 | 2011-10-05 |
|
1.6.0 | 2011-09-25 |
|
1.5.0 | 2011-09-25 |
|
1.4.0 | 2011-06-20 |
|
1.3.0 | 2011-06-16 |
|
1.2.0 | 2011-06-11 |
|
1.1.0 | 2011-06-07 |
|
1.0.0 | 2011-04-28 |
= |