Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fancybox 2.0 title options

Tags:

fancybox

In Fancybox 1.3.4 there were title options, like TitlePosition, TitleFormat. Are there replacements for these options?

Thanks

like image 294
user1067297 Avatar asked May 16 '26 04:05

user1067297


1 Answers

Here's the answer: Fancybox v2 override/format title

You need to use the beforeLoad() function to load a custom title element -

   $(".fancybox").fancybox({
    openEffect  : 'elastic',
    openEasing : 'easeOutBack',

    closeEffect : 'elastic',
    closeEasing : 'easeInBack',

    helpers : {
        title : {
            type : 'inside'
        }
    },
    beforeLoad : function() {
        this.title = 'My Custom Title';
    }
});
like image 180
kanarinkabot Avatar answered May 18 '26 16:05

kanarinkabot