Royal PrettyPhoto

Posted: August 2, 2013 at 2:34 pm

Royal PrettyPhoto is a ismple cool plugin to add automatic lightbox in wordpress post/page using added images.

prettyphoto

Examples:
To add a Single Video

[code]
<a href="Full Video Link" rel="prettyPhoto"><img alt="" src="Full Thumbnial Path" /></a>
[/code]

To add video with default image gallery

[code]
<a href="Full Video Link" rel="prettyPhoto[Your_Post_ID]" ><img src="Full Thumbnial Path" alt=""/></a>
[/code]

If you post ID is 708 rel should rel=”prettyPhoto[708]”.
Aditional Gallery with Image, Youtube Video, Vimeo Video or DIV

[code]
<div id="complexgallery">
<a href="Internal or External Full Image Link" rel="prettyPhoto[galleryname]"><img src="Full Thumbnial Path" alt=""/></a>
<a href="Youtube Full Video Link" rel="prettyPhoto[galleryname]"><img src="Full Thumbnial Path" alt=""/></a>
<a href="Vimeo Full Video Link" rel="prettyPhoto[galleryname]"><img src="Full Thumbnial Path" alt=""/></a>
<a href="#DIV_ID_NAME" rel="prettyPhoto[galleryname]"><img src="Full Thumbnial Path" alt=""/></a>
<a href="#DIV_ID_NAME" rel="prettyPhoto[galleryname]">Text for Link</a>
</div>
[/code]

For DIV you should add a div like below.

[code]
<div id="DIV_ID_NAME" style="display:none">
<p>This is inline DEV content for prettyPhoto.</p>
<p>Your DIV full conent here.</p><p>Your DIV full conent here.</p><p>Your DIV full conent here.</p><p>Your DIV full conent here.</p></div>
</div>
[/code]

Download from https://wordpress.org/plugins/rt-prettyphoto/