WordPress.org

Ready to get started?Download WordPress

Forums

Easy FancyBox
[resolved] Easy Fancybox stopped working after update (12 posts)

  1. arbaine04
    Member
    Posted 1 year ago #

    Upgraded to WordPress version 3.5.2 and Easy FancyBox version 1.5.0 and now my FancyBox plugin is no longer working properly

    The FancyBox plugin is on my site at: http://www.mainstreetpartners.org/about-us/our-people/

    RavanH would you be able to take a look? I'm not a WordPress expert so some quick step-by-step instructions on how to fix would be great!

    Thanks so much - I've loved the plugin so far!

    Alex

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

  2. RavanH
    Member
    Plugin Author

    Posted 1 year ago #

    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 :)

  3. arbaine04
    Member
    Posted 1 year ago #

    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

  4. dmbox
    Member
    Posted 1 year ago #

    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

  5. dmbox
    Member
    Posted 1 year ago #

    Sorry...I did not close the anchor tag above.

    Graphic Arts

  6. RavanH
    Member
    Plugin Author

    Posted 12 months ago #

    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.

  7. dmbox
    Member
    Posted 11 months ago #

    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?

  8. RavanH
    Member
    Plugin Author

    Posted 11 months ago #

    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

  9. dmbox
    Member
    Posted 11 months ago #

    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

  10. RavanH
    Member
    Plugin Author

    Posted 11 months ago #

    Haha, no problem. Just remember to NOT upgrade then ;)

  11. Rich Ambrose
    Member
    Posted 11 months ago #

    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

  12. RavanH
    Member
    Plugin Author

    Posted 11 months ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic