Support » Plugin: Easy FancyBox » Don't working, script error

  • Hy!

    I’m using the new, 1.5.0dev11 version. When create a page/post and add image, link for picture url, and publish. The content is okay, picture class is fancybox, but when i’m click the picture, not working the effect. The picture open that window.

    The picture and html code:
    <a title="Click to large size!" href="" class="fancybox"><img class="size-medium wp-image-636 alignright" alt="_" src="" width="300" height="160"></a>

    The Chrome console error message:
    Uncaught TypeError: Object [object Object] has no method ‘fancybox’

    That line marked, from error:

    jQuery('a.fancybox, area.fancybox, li.fancybox a:not(li.nofancybox a)').fancybox( jQuery.extend({}, fb_opts, { 'transitionIn' : 'elastic', 'easingIn' : 'easeOutBack', 'transitionOut' : 'elastic', 'easingOut' : 'easeInBack', 'opacity' : true, 'hideOnContentClick' : true, 'titleShow' : true, 'titlePosition' : 'over', 'titleFromAlt' : true, 'showNavArrows' : true, 'enableKeyboardNav' : true, 'cyclic' : false, 'changeSpeed' : 1, 'changeFade' : 1 }) );
    Uncaught TypeError: Object [object Object] has no method 'fancybox'

    Your plugin call jquery 1.8.3 and call it, but my site use 1.9.1 version, from jquery. Thats the problem?

    Thx for help!

Viewing 1 replies (of 1 total)
  • Plugin Author RavanH


    Yes, that is the problem. The plugin uses the jQuery version that comes with WordPress. If your theme has another version hard-coded in, then it is incompatible with the Easy FancyBox plugin…

Viewing 1 replies (of 1 total)
  • The topic ‘Don't working, script error’ is closed to new replies.