Active
Project:
Lightbox2
Version:
6.x-1.9
Component:
Documentation
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Dec 2011 at 15:00 UTC
Updated:
10 May 2012 at 18:07 UTC
The readme states the following:
Turning the Image Caption into a Link
=====================================
If you wish to turn the caption into a link, format your caption in the
following way:
<a href="images/image-1.jpg" rel="lightbox[][<a href=\"http://www.yourlink.com\">Clicky Visit Link</a>'>image #1</a>
Note, the < and > characters have been changed to their HTML entities, and the "
have been escaped.The above example for links in captions does not work, I also tried:
<a href="images/image-1.jpg" rel="lightbox[][<a href=\"http://www.yourlink.com\">Clicky Visit Link</a>]">image #1</a>
but that doesn't work either.. can someone please post the correct snippet?
Comments
Comment #1
Steel Rat commentedI can't get this to work either, even with KrisBulman's correction above.
I'm using "lightshow" to present a slideshow, and would actually like the user to click the image to go to the link instead of clicking the caption, which is pretty small.
Comment #2
jayemel commentedFollow the documentation on the following page for turning your captions into links. I had the same problem. The documentation on the following page fixed it.
http://drupal.org/node/356124
Comment #2.0
jayemel commentedmoved from blockquote to code