How to Generate or Customize a Lightbox Embed Code

Lightbox Embed Codes allow you to embed a thumbnail image for your video on a web page which, when clicked, launches a video player overlay on the page. It’s as easy as copy and paste to implement.

Get the SproutVideo Default Lightbox Embed Code

  1. Go to the ‘Your Videos’ library page, click on the video you want to embed, and look for the ‘Lightbox Embed’ link under the video preview on the right half of the page.

  2. Click on the ‘Copy Embed Code’ button or click directly on the code to copy the Lightbox embed code for your video.

    copy the Lightbox Embed Code for your video hosted on SproutVideo

OR

  1. From the ‘Your Videos’ library page, hover your mouse over the </> icon.

  2. Click on the ‘Copy Lightbox Embed Code’ option to copy the default lightbox embed preset code to your clipboard.

    Quickshare lightbox embed code

Customizing the Lightbox Embed Code

If you want to customize how the lightbox or video thumbnail appear on your site, please navigate to the ‘Player Options’ tab for that video and click on the ‘Lightbox Embed’ option.

The majority of the customization options available for in-line embed codes are also available for lightbox embed codes. The major differences in terms of the available settings are that both the embedded thumbnail image and the video overlay for the lightbox are responsive by default, and Autoplay is not supported by lightboxes.

You can adjust the size of both the thumbnail image and the video player overlay, show or hide the play button, add a post-play screen, loop the video, hide the player controls, and much more.

customization options for lightbox embed codes

If you would like to save these custom settings to use again in the future, simply click the ‘Save Current Configuration’ button at the top of the page above your preview, you’ll be prompted to name your lightbox embed settings preset. You may also choose to set your configured customizations as the account-wide default lightbox embed code settings by clicking the ‘Set as my Default Settings’ button at the top of the page.

If your account has any existing lightbox embed presets, they will appear in a dropdown list at the top of your settings panel on the left side of the page.

Example

Once you copy the Lightbox embed code, you can paste the code wherever you would like to publish the video.

Here is an example of a Lightbox Embed Code:



Was this article helpful?