Adding Other Video Sources to Lightbox

By default you can use Vimeo or YouTube videos to the Lightbox popup, either in Gallery or using the Shortcodes. There may be times you need to add certain content to the Lightbox popup such as self-hosted video or other elements such as a form or a notification message.

Bellow are your instructions:

  1. Download the template file by clicking the “Download File” button bellow
  2. Unzip the file and you will have a plainpage.php file template
  3. Upload plainpage.php to your server, into the /themes/Karma/ folder
  4. Create a new Page, choose “Plain Page” from the Page Templates option
  5. Add your video embed code or any other content into the Editor and Publish
  6. Create a Gallery Post, assign it to your gallery Category and add the Portfolio Full Size URL to call the newly created page i.e.: http://YourSite.com/plainpage?iframe=true&width=656&height=390

Please note – You may need to change the width and height in the URL as well as in the plainpage.php file to better fit your needs. Modify http://YourSite.com/plainpage to properly call the page you have created. The same can be used for the Lightbox Frame Shortcodes. You would simply enter the URL to the page in the  popup=””  tag. Please see example bellow:

[lightbox style="modern" image_path="http://localhost:8888/wp-content/uploads/karma-demo1.jpg" popup="http://localhost:8888/lightbox?iframe=true&width=656&height=390" link_to_page="" target="" description="" size="two_col_large"]

 


[button link=”http://support.truethemes.net/wp-content/uploads/plainpage.php_.zip” style=”download” color=”green” window=”yes”]Download File[/button]

Example:

(click screenshot for a full-size view)