WordPress.org

Ready to get started?Download WordPress

Forums

jQuery Archive List Widget
[resolved] Conflicts with Easy Fancybox (10 posts)

  1. ryanburnett
    Member
    Posted 1 year ago #

    This is a really slick plugin. Unfortunately, it doesn't work with the Easy Fancybox plugin.

    When a month is clicked, instead of starting the dropdown animation, it goes to the year archive - i.e. /2012/.

    Here's our dev site with only the following plugins enabled:

    • Easy FancyBox
    • jQuery Archive List Widget

    http://stanford.io/YWSN5U

    If you could take a look at this I'd greatly appreciate it.

    http://wordpress.org/extend/plugins/jquery-archive-list-widget/

  2. Miguel Useche
    Member
    Plugin Author

    Posted 1 year ago #

    I've checked the website and fancybox is causing some JS errors and stopping the execution of the rest of the code. So i've the following question:

    Are you adding the fancybox by yourself or by a wp plugin?

    Because it's throwing an error that $ is undefined, WordPress doesn't use $ as jQuery object, use "jQuery" instead

  3. ryanburnett
    Member
    Posted 1 year ago #

    Hi Miguel,

    Thanks for the reply!

    I'm using the Easy FancyBox plugin - http://wordpress.org/extend/plugins/easy-fancybox/

    It was just updated today, and I updated it on my dev site, but it's still causing the conflict.

    Do you recommend editing the Easy Fancybox plugin, or is there another lightbox plugin you'd suggest?

  4. Miguel Useche
    Member
    Plugin Author

    Posted 1 year ago #

    Oh sorry, i don't think it's Fancybox, it's https://www.stanford.edu/stanfordmodern/v2/js/stanfordmodern.js

    If you're using this file inside wordpress, you should add it after jquery is being included, also change $ simbols to jQuery:

    $(document) to jQuery(document)

  5. ryanburnett
    Member
    Posted 1 year ago #

    I just deleted the reference to that javascript file. Unfortunately, the issue persists, when a month is clicked, instead of starting the dropdown animation, it goes to the year archive - i.e. /2012/.

    Do you know of anything else I can try? Thank you.

    http://stanford.io/YWSN5U

  6. Miguel Useche
    Member
    Plugin Author

    Posted 1 year ago #

    The problem disappear but another one appears, I'm testing the site using Firebug (firefox web console tool), if you use Chrome you can use the Javascript console, then go to the website and you'll see all the errors.

    Try to fix one by one, i used to have a problem with easybox because it removes the jquery included in wordpress and adds its own which is older, i would to deactivate all the plugins thar require JS and let mine on it, if it works, then start activating one by one, until it doesn't work. Then you'll know the plugin confict.

  7. ryanburnett
    Member
    Posted 1 year ago #

    The only plugins enabled are Easy Fancybox and jQuery Archive List Widget, and they are conflicting. jQuery Archive List Widget stops working when Easy Fancybox is enabled.

    Any ideas how to get jQuery Archive List Widget working with Easy Fancybox?

  8. Miguel Useche
    Member
    Plugin Author

    Posted 1 year ago #

    Yes, the problem is that easy fancybox removes WordPress' jQuery and includes an old jQuery. You can check fancybox's source code and look for

    wp_deregister_script('jquery');
    wp_register_script('jquery','url to fancybox');

    and remove those lines to have newest jquery version, i haven't tested but that's the problem, easyfancybox remove wordpress jquery version and adds an outdated one.

  9. ryanburnett
    Member
    Posted 1 year ago #

    Your 1.4.2 update has fixed the conflict. Thank you!

  10. Miguel Useche
    Member
    Plugin Author

    Posted 1 year ago #

    Nice :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.