Shortcode: [iframe] – Insert iframe
[ iframe] – Insert <iframe>
The [ iframe]
shortcode allows you easily display the content of an external site. You simply have to specify the URL for the external site, and optionally a height. This shortcode automatically generates the correct HTML <iframe> code.
Shortcode usage:
[iframe src='http://example.com' height=600 percent=100 style="style"]
- src=’http://example.com’ – The standard URL for the external site.
- height=600 – Optional height to allocate for the site – in px. Default is 600.
- percent=100 – Optional width specification in per cent. Default is 100%.
- style=”style” – Optional style values. Added to <iframe> tag as style=”values”.