WordPress.org

Support

Support » Plugins and Hacks » Don't working, script error

Don't working, script error

  • RotiSoft
    Participant

    @rtomo

    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="http://_.com/wp-content/uploads/2013/01/_.jpg" class="fancybox"><img class="size-medium wp-image-636 alignright" alt="_" src="http://_.com/wp-content/uploads/2013/01/_-300x140.jpg" 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!

    http://wordpress.org/extend/plugins/easy-fancybox/

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

    @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.