Support » Plugin: Easy FancyBox » Easy Fancybox stopped working after update

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author RavanH

    (@ravanh)

    Hi Alex, there are two things going wrong.

    The first, most important one is that your site is using an older version of jQuery (1.5..) while my plugin needs at least 1.7. You need to find out why this older version of jQuery is used. It might be a plugin (maybe the one called jQuery Updater?) or your theme…

    After you solved that one, then you need to change the class for your inline content links to use fancybox-inline instead of just fancybox which is new in 1.5.0 to give you more freedom setting different parameters for inline content.

    Hope you can get it fixed 🙂

    Thanks RavanH! The problem was with my theme, which was loading the old jQuery version. Updated the theme to load the latest version, and the fancybox is now working properly.

    Thanks for the help!

    Alex

    RavanH…I have tried all of the above using the Thesis 1.8 Theme.

    I have used their ‘Additional Scripts’ function to call jquery-1.8.3.js and I have added the class=”fancybox-inline” to the two anchor tags seen here:

    When I view the source using FireBug I believe that jquery 1.8.3 is being called.

    Love your plugin, and I appreciate your support.

    Regards,
    dmbox

    Sorry…I did not close the anchor tag above.

    Graphic Arts

    Plugin Author RavanH

    (@ravanh)

    Hi dmbox, it’s because of this line right at the end before the closing body tag:

    <script src="/lib/jquery-1.6.4.min.js"></script>

    which is, I suppose, hard-coded in your themes footer.php…

    Next, you need to remove the class="fancybox-inline" for links to images. That class is reserved for inline HTML content.

    Thank you RavanH….the script that is causing the probem is from a plugin called ‘Backstretch’ and I am not sure how to work around this conflict without rebuilding my site.

    Your excellent plugin was working fine prior to the upgrade.

    Is there an archive where I can go back to your previous version?

    Plugin Author RavanH

    (@ravanh)

    Yes, all plugins have this archive on the Developers tab. See http://wordpress.org/plugins/easy-fancybox/developers/

    But rebuilding your site should not be needed. You can try just removing the line

    <script src="/lib/jquery-1.6.4.min.js"></script>

    from your footer.php and if that breaks the backstretch functionality, then replace the backstretch script file in your site root with the latest version from https://raw.github.com/srobbin/jquery-backstretch/master/jquery.backstretch.min.js

    My friend…thank you so much for the support.

    The site is so old, I could not recall how I added the ‘backstretch’ script to the WordPress files. Not sure if I used OpenHook or some other work around, but simply could not find how I did it.

    Still using and old version of the Thesis theme 1.8.5…so I took the shortcut, and re-installed your 1.3.4.9 version.

    Warmest regards,
    dmbox

    Plugin Author RavanH

    (@ravanh)

    Haha, no problem. Just remember to NOT upgrade then 😉

    Hi Ravan
    I am using you plugin everywhere, but since the update it’s stopped working for instance on http://www.ambrosedesigns.co.uk/wfp2/ the video on the right no longer opens a video.

    I am more a cut and paste person when it comes to Jquery. As far as scripting goes i just have this going on in the header

    <!–[if lt IE 9]>
    <script src=”<?php echo get_template_directory_uri(); ?>/js/html5.js” type=”text/javascript”></script>
    <![endif]–>

    <?php wp_head(); ?>
    <script type=”text/javascript” src=”http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js”>
    </script>

    <script type=”text/javascript” src=”http://ambrosedesigns.co.uk/quest/downloads/malsup/cycle/jquery.cycle.lite.1.0.min.js”>
    </script>
    <script type=”text/javascript”>
    $(function()
    {
    $(“#slides”).cycle();
    });
    </script>

    The last one is for an image slider. Will that cause a conflict?

    Hope you can help

    Richard

    Plugin Author RavanH

    (@ravanh)

    Hi Rich, you are including the jQuery library multiple times:

    ...
    <script type='text/javascript' src='http://www.ambrosedesigns.co.uk/wfp2/wp-includes/js/jquery/jquery.js?ver=1.10.2'></script>
    ...
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js">
    ...

    Remove that last one if you want to prevent any weird jquery related issues.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Easy Fancybox stopped working after update’ is closed to new replies.