Skip navigation
blu_escape
Currently Being Moderated

Lightbox Caption Link

Jun 17, 2013 9:34 AM

Hi,

 

   I can't link the caption in the lightbox for some reason. This is what I have so far:

 

http://imaginecongo.com/theteam.html

 

Any ideas on what I did wrong?

 
Replies
  • Currently Being Moderated
    Jun 17, 2013 2:45 PM   in reply to blu_escape

    I'm not sure ordinary Lightbox scripts support URLs inside the title attributes.

     

    However, Fancybox2 does support this.  See example code below.

    http://jsfiddle.net/cWNw9/

     

     

     

    Nancy O.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 17, 2013 2:58 PM   in reply to Nancy O.

    You might also want to fix the html errors in your page by running it through the validator here and clearing them out: http://validator.w3.org you have a little over 50 of them .

     

    Your lightbox script does not appear to be written in a way that allows for links in the captions and is responsible for some of the errors the validator is seeing, but you have quite a few that are not related to that and they could cause you issues.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 17, 2013 3:54 PM   in reply to blu_escape

    Yeah, original Lightbox DOESN'T suppport links in the "title" caption.

    Fancybox does, but you have to use ASCII for it:  <a href="address">link text</a>

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 17, 2013 3:59 PM   in reply to Mike M

    Fancybox2 doesn't require ASCII.

    http://jsfiddle.net/cWNw9/

     

    Just saying...

     

     

    Nancy O.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 17, 2013 7:44 PM   in reply to Nancy O.

    I've found when I throw the extra quotes into the "title" in my link, it completely disables it. I must be doing something wrong.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points