WordPress.org

Ready to get started?Download WordPress

Forums

Easy FancyBox
Don't working, script error (2 posts)

  1. rtomo
    Member
    Posted 10 months ago #

    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/

  2. RavanH
    Member
    Plugin Author

    Posted 10 months ago #

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

Reply

You must log in to post.

About this Plugin

About this Topic