I'm using Fancybox 2 to generate a gallery. As well as text, I'd like to have links in the captions of my photos, if necessary.
Here's the page where I'd like to have links within the captions: http://catjohnson.co.uk/weddings
By simply adding an html link in there (following this answer: In Prettyphoto.js or Fancybox... How to add a link within the caption) it breaks the photo within the gallery.
I've tried following this http://jsfiddle.net/FWTZA/ and although it works, I lose my styling.
I can't seem to get my styling to integrate with the js fiddle code… Here's what I'm doing at the minute, which is working:
$(document).ready(function() {
$(".fancybox").fancybox({
openEffect : 'fade',
closeEffect : 'fade',
nextEffect : 'fade',
prevEffect : 'fade',
helpers : {
title : {
type : 'inside'
},
overlay : {
css : {
'background-color' : '#eee'
}
}
}
});
});
I hope that makes sense!
Thanks for taking a look!
Martin :)