Hi everyone,
I have been experimenting and have found how to edit the options for
fancybox in the js.options.php file of my theme. I am still having
problems, so if anyone can help me out that would be really great.
Here is the script from the js.options.php in regards to the title:
function(title, currentArray, currentIndex, currentOpts) {
return '<div class="gallery-image-title">' + (title &&
title.length ? '<strong>' + title + '</strong>' : '' ) + '<span
class="image-count">Image ' + (currentIndex + 1) + ' of ' +
currentArray.length + '</span></div>';
},
'onComplete' : function(){
jQuery("#fancybox-close").hide();
jQuery("#fancybox-title").hide();
jQuery("#fancybox-wrap").hover(function() {
jQuery("#fancybox-close").stop(true).fadeTo("fast", 1.0);
jQuery("#fancybox-title").stop(true).fadeTo("fast", 1.0);
}, function() {
jQuery("#fancybox-close").stop(true).fadeTo("fast", 0);
jQuery("#fancybox-title").stop(true).fadeTo("fast", 0);
});
}
});
What I am trying to do is remove the 'Image x of x' title and replace
it with a title that has breaks ie:
'Title of the image'
'Another Piece of info'
'Third Piece of Info'
Is this possible? Right now I can't even get the Title attribute to
display when I insert one in wordpress, all I can get to display is
the 'Image x of x'.
Thanks so much.
J