I made a plugin for my webpage. It works as a standalone HTML file fine. But when I use it as wp plugin a jQuery Plugin I need (Bootstrap Slider https://github.com/seiyria/bootstrap-slider) throws this error above.
I included jquery and this boostrap-slider plugin like that:
wp_enqueue_script( 'child_jquery','cdn URl');
wp_enqueue_script('bootstrap-slider', 'CDN Url');
And call the plugin in my code so:
jQuery("#m1,#m2,#m3,#m4,#m5,#m6,#m7,#m8,#m9,#m10,#m11,#m12").slider({
reversed : true,
tooltip: 'show'
});
This call is within a document ready function:
jQuery(document).ready(function(){
My suspicion, after the plugin is loaded a further jquery is enqued. So in the source code I have (simplified):
jquery.js
bootstrap-slider.js
jquery.js (an old one from wp)
I tried to deregister it and right after that enqueue it again. But if I do that the plugin still doesn't work and another plugin throws this error.
Any ideas?
Thanks in advance