Jquery issue and plugin compatibility
-
Hi,
The recent update to 4.5.2 seems to have eliminated a shopping cart wishlist plugin on my website. I emailed the plugin developer, and I was told:
“This issue it is related to the last wordpress update which have a mini bug with the jquery. If it is urgent follow this steps explained here https://colorlib.com/wp/load-wordpress-jquery-from-google-library/
and add the script the your theme functions.php
or i suggest to wait as will be an update soon of the wordpress which will fix this, so the plugin itself do not have issue
here the code :
//Making jQuery to load from Google Library
function replace_jquery() {
if (!is_admin()) {
// comment out the next two lines to load the local copy of jQuery
wp_deregister_script(‘jquery’);
wp_register_script(‘jquery’, ‘https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js’, false, ‘1.11.3’);
wp_enqueue_script(‘jquery’);
}
}
add_action(‘init’, ‘replace_jquery’);What do you guys recommend? I’m not a coder, so what I do know is that the plugin stopped working right after the update, otherwise it was fine. Any help or suggestions would be great. If you think this is an appropriate action, or perhaps to use an older version of functions.php, then please let me know.
Thanks!
- The topic ‘Jquery issue and plugin compatibility’ is closed to new replies.