WP Video Lightbox Plugin Usage Guide: 1. Using Wordpress Shortcodes
WP Video Lightbox Plugin Usage Guide: 1. Using Wordpress Shortcodes
2. Using HTML
Embedding an Image
To open an image using lightbox overly do the following:
1. Create a link (<a href=#>).
2. Add the rel attribute wp-video-lightbox to it (rel=wp-video-lightbox).
3. Change the href of your link so it points to the full size image.
You can also add a title and a description to your picture:
1. To display a title, add the title into the ALT attribute or your thumbnail image.
2. To display a description, add the description into the TITLE attribute or your link.
Example Code
<a href="images/fullscreen/2.jpg" rel="wp-video-lightbox"
title="This is the description"><img src="
http://example.com/images/thumbnails/t_2.jpg" width="60"
height="60" alt="This is the title" /></a>
Embedding Flash
To open flash content simply:
1. Create a link (<a href=#>).
2. Add the rel attribute wp-video-lightbox to it (rel=wp-video-lightbox).
3. Change the href of your link so it points to the SWF file.
4. Then add the width and height as parameters in your HREF
(?width=100&height=100).
5. In the case your flash needs specifics variables, add &flashvars and add the
required parameters.
Example Code
<a
href="http://www.adobe.com/products/flashplayer/include/mar
quee/design.swf&?width=792&height=294" rel="wp-videolightbox[flash]" title="Flash 10 demo"><img src="
http://example.com/images/thumbnails/flash-logo.jpg"
alt="Flash 10 demo" width="60" /></a>
Using iFrame
To open your content inside an iframe:
1. Create a link (<a href=#>).
2. Add the rel attribute wp-video-lightbox to it (rel=wp-video-lightbox).
3. Change the href of your link so it points to the webpage you want to open.
4. Then add ?iframe=true as a parameters in your HREF so wp-video-lightbox
knows to open the content in an iframe.
5. Then add the width and height as parameters in your HREF
(&width=100&height=100). Please note that the dimensions can be percent based.
Example Code
<a
href="http://www.apple.com?iframe=true&width=500&height=300
" rel="wp-video-lightbox[iframes]">Apple.com</a>
Inline Content
To open inline content:
1. Create a link (<a href=#>).
2. Add the rel attribute wp-video-lightbox to it (rel=wp-video-lightbox).
3. Change the href of your link so it is the ID of the inline content you want to open
with the ID CSS selector (#).
<a href="#inline-1" rel="wp-video-lightbox" ><img src="
http://example.com/wpcontent/themes/NMFE/images/thumbnails/ logo.jpg" alt=""
width="50" /></a>
<div id="inline-1" style="display:none;">
<p>This is inline content opened in wp-video-lightbox.</p>
</div>