Show video in IFrame

If you need to show the video in an IFrame, we have a short manual how to achieve that:

  1. First you need to create a new page template, which will be almost blank. You will need to keep there only basic html tags, and following three wp calls: wp_head, the_content and wp_footer
    See How to create page template on wordpress.org to create the template or download the following example video-iframe.zip.
  2. Next create a new page where you will place the shortcode for a video
  3. Assign this blank template to a video
  4. And put it into an iframe:
    <iframe src="http://example.com/my-video/">
    Your browser does not support iframes.
    </iframe>

Video below is an iframe:

About zdenka

Developer.
This entry was posted in Tricks. Bookmark the permalink.