Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: jayemel commentedmoved from blockquote to code