Important: jQuery 1.9 Not compatible yet, working on a "patch"
-
Hi,
I just wanted to let everyone know that a recent new version of jQuery, 1.9 has been released recently and fancybox 1.3.4 is not compatible with it for now.
If your fancybox installation was working until recently and broke without making any changes, chances are it’s caused by this issue. This will only affect you if your blog is loading the latest stable jquery version from Google’s API or a similar CDN.
If you don’t want to wait for a patch you can either roll back to the latest know version supported which is jQuery 1.8.3, or add jQuery Migrate to your blog. More info can be found here: https://stackoverflow.com/a/14355740
jQuery is usually loaded from your theme’s functions.php file.
If you need to redirect your jquery to version 1.8.3 here’s an example function that might work for you. (Don’t just copy paste this code, it’s an example and you may have to look on your theme’s code to see how it loads jquery).
function mytheme_jquery() { if ( !is_admin() ) { wp_deregister_script('jquery'); wp_register_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js'); } } add_action('wp_enqueue_scripts', 'mytheme_jquery');
Regarding a fix, hopefully i’ll be able to release an update for the plugin soon. Thanks for your patience.
https://www.ads-software.com/extend/plugins/fancybox-for-wordpress/
- The topic ‘Important: jQuery 1.9 Not compatible yet, working on a "patch"’ is closed to new replies.