jquery Tools conflict
-
Hello,
jquery Tools included by your plugin here:
/templates/no-conflict/header.php
Line 19:
<script type=”text/javascript” src=”<?=$this->path?>/javascript/jquery.tools.min.js?541″></script>seems to be causing some javascript errors, like these:
Uncaught TypeError: jQuery(…).tabs is not a function(anonymous function)
Uncaught TypeError: jQuery(…).overlay is not a function(anonymous function)I’ve been told that it might be an older version of the library which still includes it’s own version of jquery, which conflicts with WP jquery already being used by the theme, causing several javascript errors.
I’ve removed that line and added this into my theme’s functions.php:
wp_register_script(‘jquery.tools.front’, ‘https://cdn.jquerytools.org/1.2.7/all/jquery.tools.min.js’); /*[overlay, toolbox.expose]*/
wp_enqueue_script(‘jquery.tools.front’, array(‘jquery’), FALSE, FALSE);… and the errors are gone.
Can you take a look into that and see if that implementation makes sense in a future update?thanks.
- The topic ‘jquery Tools conflict’ is closed to new replies.