Add images and links in the description field of video lightbox


WonderPlugin Lightbox


For your video lightbox plugin, will I be able to put images and links within the description field of videos? I see it will parse the links I put before loading the video? Is there a way around it?


Yes, you can directly add HTML code in the description and display images and links in the lightbox text field, but the HTML code need to encoded to HTML entities.

For example:

<a href="" class="wplightbox" data-titlestyle="right" data-width="640" data-height="360" title="WonderPlugin Carousel" data-description="&lt;a href=&quot;; target=&quot;_blank&quot;&gt;WonderPlugin Carousel&lt;/a&gt;">
Click to Open Lightbox

You can use this online tool to encode your HTML code:

Online HTML Entities Encode and Decoder

A demo is as following:

YouTube Lightbox, Text on Right with an HTML link