WP Video Lightbox


The WordPress Video Lightbox plugin allows you to embed videos on a page using lightbox overlay display.

This plugin can be used to display images, flash, YouTube, Vimeo, iFrame etc in a lightbox overlay. The embedded videos can be viewed on iPhone and iPad too.

Embedding Vimeo Video

You can embed a vimeo video using the following shortcode in a WordPress post or page:

[video_lightbox_vimeo5 video_id="13562192" width="640" height="480" anchor="click here to open vimeo video"]
[video_lightbox_vimeo5 video_id="13562192" width="640" height="480" anchor="http://www.example.com/images/vimeo-thumb.jpg"]

You need to replace the value of „video_id“ with your actual vimeo video ID. When a user clicks on the anchor text/image your vimeo video will pop up in lightbox.

Embedding YouTube Video

You can embed a YouTube video using the following shortcode in a WordPress post or page:

[video_lightbox_youtube video_id="G7z74BvLWUg" width="640" height="480" anchor="click here to open YouTube video"]
[video_lightbox_youtube video_id="G7z74BvLWUg" width="640" height="480" anchor="http://www.example.com/images/youtube-thumb.jpg"]

You need to replace the value of „video_id“ with your actual YouTube video ID. You can also control the size of the lightbox window by customizing the width and height parameters.

Optimizing the SEO of your Thumbnail Image

When you are using a thumbnail image as the anchor, you can describe it using the „alt“ parameter in the shortcode. It helps Search Engines understand what this image is about.

[video_lightbox_youtube video_id="G7z74BvLWUg" width="640" height="480" anchor="http://www.example.com/images/youtube-thumb.jpg" alt="text that describes this image"]

You need to replace the value of „alt“ with your own description of the image.

Features/Settings Configuration

Once you have installed the plugin you can configure some options to customize the popup. The settings menu can be accessed from „Settings->Video Lightbox->prettyPhoto“.

  • Enable prettyPhoto: Check this option if you want to use the prettyPhoto library
  • Animation speed: fast / slow / normal [default: fast]
  • Autoplay slideshow: true / false [default: false]
  • Opacity: Value between 0 and 1 [default: 0.8]
  • Show title: true / false [default: true]
  • Allow resize: Resize the photos bigger than viewport. true / false [default: true]
  • Allow expand: Allow the user to expand a resized image. true / false [default: true]
  • Default width: default width of the lightbox window [default: 640, you can override it using the width parameter in the shortcode]
  • Default height: default height of the lightbox window [default: 480, you can override it using the height parameter in the shortcode]
  • Counter separator label: The separator for the gallery counter in lightbox [default: /]
  • Theme: theme for the lightbox window – Default, Light Rounded, Dark Rounded, Light Square, Dark Square, Facebook
  • Horizontal padding: The padding on each side of the lightbox window [default: 20]
  • Hide Flash: Hides all the flash objects on a page, set to true if flash appears over prettyPhoto [default: false]
  • wmode: the flash wmode attribute [default: opaque]
  • Autoplay: Automatically start videos: true / false [default: true]
  • Modal: If set to true, only the close button will close the window [default: false]
  • Deeplinking: Allow prettyPhoto to update the url to enable deeplinking. [default: true]
  • Overlay gallery: If this enabled, a gallery will overlay the fullscreen image on mouse over [default: true]
  • Overlay gallery max: Maximum number of pictures in the overlay gallery [default: 30]
  • Keyboard shortcuts: Set to false if you open forms inside prettyPhoto [default: true]
  • IE6 fallback: compatibility fallback for IE6 [default: true]

Additional Features

  • Automatically retrieve the thumbnail for your video and embed in lightbox
  • Load YouTube video over https. This is great if you have SSL installed on your site
  • Disable suggested videos at the end of a YouTube video
  • Enable privacy-enhanced mode in a YouTube video
  • Flexiblity of using both shortcode/html code to pop up media in lightbox
  • Show description of a popup in overlay

For video tutorial, screenshots, detailed documentation, support and updates, please visit: WP Video Lightbox plugin page


You need to embed the appropriate shortcode on a post/page to display the specific type of media (Youtube, Vimeo, Flash etc).
Instructions for using the shortcodes are available at the following URL:
WP Video Lightbox Details Usage Instruction


Upload the plugin to the plugins directory via WordPress Plugin Uploader (Plugins->Add New->Upload->Choose File->Install Now) and Activate it.


Can this plugin be used to embed a YouTube video?


Can this plugin be used to embed a Vimeo video?


Can this plugin be used to do lightbox on images?


Can this plugin automatically create a thumbnail/anchor image from the YouTube video?



September 7, 2018
The shortcode is decent, but the designs are way too opinionated and there is a big red button on each of the videos. Would also like the ability to have the video title under the thumbnail for the video. Would not necessarily recommend.
August 23, 2018
I tried to figure out an odd scrolling issue we were having with the video lightbox on mobile before leaving a review, but the support for this plugin was pretty dismissive so here I am. It works on screens larger than mobile/tablet, but we found an odd scrolling issue where the video lightbox add/allows infinite horizontal scrolling when 'open'. We tested on several browsers and devices. I described the issue to the developer and sent gifs of the bug, but was continually told that he "can't test because he has an android device, and the video doesn't popup or play on it anyways." I thought this was pretty dismissive and just bad problem-solving, not to mention he didn't really care that his plugin didn't even begin to work on his own device. If you don't have time to offer support, I get it, make that known. If you just don't care to address and look into problems within the community of your plugin, don't offer support in the first place.
Dezember 5, 2017
After fighting with random "all in one" lightboxes and other video lightboxes, I tried this one out. It just works. Its responsive, its versatile and you can put it anywhere you want with the shortcodes. Thank you fora great plug-in!
Lies alle 58 Rezensionen

Mitwirkende & Entwickler

„WP Video Lightbox“ ist Open-Source-Software. Folgende Menschen haben an diesem Plugin mitgewirkt:


„WP Video Lightbox“ wurde in 1 Sprache übersetzt. Danke an die Übersetzerinnen und Übersetzer für ihre Mitwirkung.

Übersetze „WP Video Lightbox“ in deine Sprache.

Interessiert an der Entwicklung?

Durchstöbere den Code, sieh dir das SVN Repository an oder abonniere das Entwicklungsprotokoll per RSS.



  • Video lightbox is now compatible with WordPress 5.0.

= 1.8.7
* Fixed the YouTube autoplay option.
* Fixed close button was partially positioned behind the lightbox.
* Fixed play button img was inheriting box-shadow from theme.
* Fixed PHP notices on settings page.
* Added a new option to enable privacy-enhanced mode in a YouTube video.


  • Added a fix so a search engine bot cannot access the video lightbox directory.


  • Video Lightbox is now compatible with WordPress 4.9.


  • Fixed a deprecated constructor warning in the class-prettyphoto.php file.


  • Fixed an issue where the alternate text did not appear for a custom YouTube thumbnail.


  • Video lightbox is now compatible with WordPress 4.6.


  • Video lightbox now includes the minified version of the prettyPhoto library.


  • Vimeo video URL is now rendered in HTTPS in the shortcode.
  • Vimeo video thumbnail is now retrieved with a secure API request to the vimeo server.


  • Fixed some deprecated function in the settings.


  • Added „alt“ parameter in the shortcode that can be used to describe the anchor image.


  • Added translation option which is compatible with language packs.
  • Video Lightbox is now compatible with WordPress 4.4.


  • Video Lightbox is now compatible with WordPress 4.3.


  • Updated the prettyPhoto library to fix an XSS vulnerability in it.


  • Video Lightbox shortcodes will now get filtered in a text widget


  • plugin is compatible with WordPress 4.2


  • plugin is now compatible with WordPress 4.1


  • Fullscreen option is now available for YouTube and Vimeo videos


  • Fixed an error message in the video lightbox settings


  • Added a new shortcode parameter to show the description of a video popup in lightbox


  • fixed an issue where vimeo video could not be played on a HTTPS site


  • plugin is now compatible with WordPress 3.9.


  • YouTube video can now be loaded over https


  • fixed a bug in the plugin where default options were not set for automatic upgrade


  • plugin is now compatible with WordPress 3.8.


  • plugin now works with multisite install.


  • Created a settings menu for the plugin
  • Updated the prettyPhoto library to 3.1.5


  • Added https support for YouTube video.


  • Added an option to automatically create and use the thumbnail of the YouTube or Vimeo video as the anchor image.


  • Made some improvements as to how the JavaScript code is loaded in the plugin. WordPress 3.6 compatibility.


  • added a feature in the shortcode to turn off the related video display after the playback


  • First commit to the wordpress repository