View Full Version : how to put a link in a fancybox title

01-15-2010, 06:10 PM
Hi everybody, I seem to be stuck as to how to put a link inside a fancybox title, so that the caption beneath the image will display said link. Any help on this will be muy appreciated!

01-16-2010, 07:14 AM
Can you show us what you mean? Otherwise I guess you are asking how to style the link?

01-16-2010, 07:53 AM
Hi WotNow Go to the fancybox website and look at the demos. You'll see what he means. I looked but have no idea how it should be done.

01-16-2010, 08:07 AM
i think it is the same as adding a link in any link title attribute (guess). I have no idea as to how to go about it either. i want to do it for my site, so that people can preview a template as an image through fancybox, than choose to demo the template via the link. im lost on it though, if no one here knows i may just rethink my plan for it :/

01-16-2010, 08:15 AM
I take it you have tried just putting a regular href link in the title? Not that I'm expecting that to work mind you...but to cover all bases.

01-16-2010, 08:56 AM
As far as can see then it should be possible, because Fancybox parses the title attribute as plain HTML. I did have a look into fancybox.js, but I'm not sure yet where to customize the function that puts the title attribute as a caption. Did you ask already at Fancybox Google Groups?

01-16-2010, 03:38 PM
I've tried a regular href link, it seems to display it like regular text. I wasnt aware of the google group, thanks, Ill go post over there and update if i find anything. :grin:

01-20-2010, 10:19 PM
Ok, heres the solution if anyone is interested...


01-21-2010, 06:00 AM
Nice one. Looks good. I'm not convinced that replacing the title with a link is technically 'good practice' but...oh well :)