View Full Version : Help adding Lightbox link to separate window

05-07-2011, 06:05 AM
Could someone please help me figure out how to add a link in the Lightbox Image title area that would open in a separate window? This is for version 2.05. I saw the previous post explaining how to do it with version 2.03 but I could not find the specified code anywhere in the lightbox.js file.

Any help would be GREATLY appreciated. This is for a portfolio and I need to be able to display the image and have the link show the webpage in a SEPARATE window and I cannot figure this out.

Thank you in advance!


05-07-2011, 03:42 PM
Use this modified version of the Lightbox 2.05 script:


Once you're using that version, you may make a link like so:

<a href="images/image-1.jpg" rel="lightbox"
title="linked something, new window" rev="http://www.google.com::_blank"><img
src="images/thumb-1.jpg" width="100" height="40" alt="" /></a>

This will also work for a grouped image. The link is dark red and the target is green. Note the separator - ::, it's only required if you want the link to have a target. If you do:


it will open in the same window.