WordPress Video Lightbox Plugin – Display Videos and Images in a Fancy Lightbox Overlay

The WordPress Video Lightbox plugin allows you to embed videos on a page using lightbox overlay display similar to the one shown below. This plugin can be used to display images, flash, YouTube, Vimeo, iFrame etc in a lightbox overlay. The embedded videos can be viewed on iPad too.

Click on the image below to see how the video pops over in a lightbox overlay.

Little Background

Previously I was using another plugin to display my Vimeo videos in a lightbox overlay but recently Vimeo changed their video embed code to use HTML5 in an effort to make the videos playable in iPhone and iPad. Unfortunately, the other plugin wasn’t working with this change and I was getting the following error on all my embedded Vimeo videos:

Sorry, this video does not exist

To get around the problem I created this plugin and tweaked the required JQuery library so it works with the new Vimeo video embed code. When you use this plugin to embed videos it will play your YouTube or Vimeo videos on iPhone and iPad too!

Download WP Video Lightbox

App Category
WordPress Plugin
Software Name
WordPress Video Lightbox
Date Modified
Operating System
WordPress 4.4
Embed your videos using a fancy lightbox
File Format

Download the WP Video Lightbox Plugin from here.

Plugin Compatibility

Works with the latest version of WordPress.

Plugin Requires

Requires WordPress 3.0 or higher.

Plugin Installation

  1. Unzip and Upload the folder ‘wp-video-lightbox’ to the ‘/wp-content/plugins/’ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Follow the instructions in the “Usage” section to start embedding your images, videos etc.

Plugin Usage

I have created a PDF file documenting the various ways to use this plugin.

If you are looking for a professionally supported, feature rich and robust video lightbox plugin then checkout our WordPress Lightbox Ultimate Plugin.

How to Turn Off the Related Videos At the End of a YouTube Video

If you do not want to show the “suggested videos” that YouTube shows at the end of a video playback then use the following technique:

Add &rel=0 at the end of the video ID which will turn off the related videos display.

Here is an example shortcode that shows you how to use this:

[video_lightbox_youtube video_id="G7z74BvLWUg&rel=0" width="640" height="480" anchor="click me"]

Alternatively, you can use “rel=false” at the end of the video URL to turn off the the related videos. Here is an example:

[video_lightbox_youtube video_id="G7z74BvLWUg&rel=false" width="640" height="480" anchor="click me"]

Automatically Use Video Thumbnail as Anchor

You can use an extra parameter in the shortcode to automatically generate and use the thumbnail of the YouTube or Vimeo video as the anchor image.

Here is an example usage of the shortcode with auto thumbnail option:

[video_lightbox_youtube video_id="G7z74BvLWUg" width="640" height="480" auto_thumb="1"]

Or the following for Vimeo video:

[video_lightbox_vimeo5 video_id=29417470 width=800 height=450 auto_thumb="1"]

The above shortcode will produce the following anchor image for the embedded video (it takes the thumbnail of the video automatically):

auto youtube video thumbnail

Specifying alt Attribute for Thumbnail Image

You can use the “alt” parameter in the shortcode to specify an alternate text for your thumbnail image. Search Engines read this text description to understand what this image is about.

Here is an example usage of the shortcode with the “alt” parameter:

[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"]

Check out my projects page for more cool WordPress plugins.

Found this article interesting? Subscribe to Tips and Tricks HQ

email icon rss feed icon twitter icon google plus icon

Comments (177 responses)

  1. wpcommerce says:

    @Jadmo, You just add shortcodes to the page to embed videos.

  2. JADMO says:

    Hi, how I can embed more than one video?

  3. wpcommerce says:

    @Cathy, We don’t display any share option in our video lightbox plugin. You may have another lightbox plugin installed which is applying these settings.

  4. Cathy says:

    Can I disable the “share” and “like” options on the videos in the paid and/or free versions?

  5. Jas says:

    That did the trick thanks!

  6. wpcommerce says:

    @Jas, Have you disabled the “autoplay slideshow” checkbox in the settings (Settings->WP Lightbox->Library Settings->prettyPhoto settings)?

  7. Jas says:

    I have a vimeo video that keeps restarting in lightbox. Any ideas?

  8. Laura says:

    Thanks for this great plugin. Everything works perfectly.

  9. wpcommerce says:

    @Sam, Video Lightbox plugin can only popup from its own shortcode. I believe you have another lightbox plugin installed which is automatically formatting every link on your website to open in lightbox. Deactivating the conflicting plugin should fix this issue.

  10. Sam says:

    Hi, I’m currently testing out the free version of this plugin and I love it. The only problem is that when I click to open up my thumbnail to open up the lightbox, another window displaying a youtube video pops us behind the lightbox. My lightbox YouTube video works fine, I just need to get rid of the pop up youtube video behind it that doesn’t work.

  11. wpcommerce says:
  12. Ahmad Ali says:

    does it allow self-hosted videos to show in lightbox?

  13. wpcommerce says:

    @Andreas, mobile devices are designed so autoplay cannot be enforced. This is to make sure the user doesn’t lose unnecessary bandwidth.

  14. Andreas says:

    How can I turn on autoplay on mobiles?

  15. wpcommerce says:

    @Tom, Video Lightbox didn’t have any option to embed shortcode in the widget. We have released an update for it. Please update your video lightbox plugin and see how it goes.

  16. Tom says:

    When I try using the shortcode in a text widget all I see is the actual text rather than video or image. Can you give me more details about what to put into the text box to make it work correctly.

  17. wpcommerce says:

    @Richard, I have just checked your site. I believe autoplay is not enabled. You can enable it in the settings (Settings->Video Lightbox->prettyPhoto->Autoplay).

  18. Richard Powell says:

    Great plugin! I’ll be updating to the developer’s license soon. One small glitch: YouTube video does not autoplay; in settings (for ver. 1.7.2) it says the Autoplay default is true. Whether I click the checkbox or not, I still have to manually play the video. BTW: works great on my Android device also.

  19. wpcommerce says:

    @cerojas, Please check the demo page to see how it works:


  20. cerojas says:

    I want to display a flash video. Can somebody show me an example please?

  21. kyle says:

    GREAT plugin. Nice to be able to serve up videos from vimeo’s fast server instead of our slower one.

  22. Jason Fonceca says:

    You’re a god.

    Finally an elegant, robust video lightbox for wp.

    Thank you.

  23. Andrew says:

    Fantastic plugin – does what none of the rest do and actually works well! Thanks Mr. Developer!

  24. Peter says:

    THANK YOU VERY MUCH. I don’t usually shout, but I’m pressed for time now and I’m just so pleased to finally find a free plugin that doesn’t have a ridiculous watermark on it! The pdf instructions were awesome, Thanks again!

  25. TK says:

    Excellent plugin… I love it simple clean and fast

  26. Christi says:

    Sweet plugin. Works beautifully. Thank you…

  27. wpcommerce says:

    @Rik, Currently we don’t have that option in the plugin.

  28. Rik says:

    This plugin is great. Thanks a bunch.
    Can you please tell me if the following is possible?
    I am using your plugin.
    I have an image.
    When you click the image a light box pops up with a youtube video in it.
    I have other videos i would like to incorporate.
    I am hoping that when someone clicks my image i will get the lightbox pop up with video. I would like to have my additional videos show up as thumbnails in the light box along the bottom.
    A visitor could then scroll through the videos with out have to shut the light box down and relaunch it every time.

    So basically lightbox thumbnail video gallery pulling from youtube. youtube part is not a deal breaker but would be great if it happened.

  29. smart media says:

    Nice plugin Thank you.

  30. Jordan says:

    That seems to have done the trick. Not sure how I missed that. Thanks!

  31. wpcommerce says:

    @Jordan, do you have “Enable Slideshow” option checked in the video lightbox settings? If so please disable it.

  32. Jordan says:

    I am having the same problem Jeremy was, but I’m not sure how to fix it. My videos restart every 2-3 seconds. It’s as if the plugin is just set on a loop and restarts itself, so the video won’t play properly. I just noticed this happening; previously everything worked perfectly.

  33. Mike Levine says:

    This plugin is goddamn amazing. Seriously has saved me so much time and looks very professional too. Thank yoU!

  34. wpcommerce says:

    @Phyllis, the automatic thumbnail option only works with public vimeo videos.

  35. Phyllis Khare says:

    I’m not getting the thumbnail images. Everything else works great. I’m using private vimeo videos. Can’t change that – it’s for a membership site. Any ideas what to do?

  36. Jeremy says:

    I was able to fix it…there was a problem in mySQL database that I had to fix. Thanks for getting back to me.

  37. wpcommerce says:

    @Jeremy, do you have the automatic slideshow option enabled in the settings?

  38. Jeremy says:

    Can someone please help! All my videos on my site are in a deadly loop of restarting every few seconds. They will pop-up in the lightbox and start playing like they are supposed to but then they restart and restart and restart every few seconds

  39. wpcommerce says:

    @Pulseframe, It’s coming from your theme which is also including the prettyPhoto lightbox script.

  40. Pulseframe says:

    I have this appearing at the bottom left side below each video: {pp_social}
    Should this be appearing social buttons or it’s like a code error?

  41. wpcommerce says:

    @Laurens, There is a checkbox in the video lightbox settings to enable “autoplay” on your videos (Settings->Video Lightbox->prettyPhoto->Autoplay).

  42. Laurens Hoogland says:

    He guys, i use the youtube video shortcode of this plugin in a Revolution slider.
    Works perfect, shows up nice and tidy, only problem i have is that i want the video to autoplay.

    I checked all posts on this site, but cant figure it out.

    So please explain to me how to get the video to autoplay at anchor click.


    Laurens Hoogland

  43. Chad says:

    Thanks for contacting me. I realized tonight that the problem was due to another plugin I had running that opens all external links in a new window. I had disabled a similar plugin but didn’t realize I had another one as well. Sorry for the trouble.

    Fantastic plugin!

  44. wpcommerce says:

    @Chad, can you please provide a link to the page in question so I can take a look?

  45. Chad says:

    My video opens in the pop-out fine but it also opens YouTube in a separate window/tab. I can’t figure out why. Any help would be appreciated.

  46. shahid says:

    Great plugin – exactly what I needed and a piece of cake to instal!

  47. wpcommerce says:

    @Guido, currently video lightbox doesn’t work with private vimeo video

  48. Guido says:


    thanks for that great plugin.

    i have a problem with the auto_thumb parameter. the thumbnail didn´t visible by the protected mode in Vimeo.

    Is there a solution?


  49. wpcommerce says:

    @Sean, You can customize the size of the thumbnail the “wp-video-lightbox.css” file (it’s in the root directory of video lightbox plugin)

  50. Sean says:

    How can you change the size of the thumbnail that the user will click on? It’s so small…

Speak Your Mind