Wordpress ReferenceError: jQuery is not defined -
I keep getting this error.
I just call my plugin which has been installed on my wp site .js files with jquery and jquery-ui-core as dependency
I have them Believe it:
wp_enqueue_script ('vkrwpsprojs', plugins_url ('/js/vkrwpsprojs.js', __FILE__), array ('jquery')); Wp_enqueue_script ('fancybox', plugins_url ('/js/jquery.fancybox.js', __FILE__), array ('jquery-ui-core'));
The main part of my page (where .js files begin to contain) looks like:
& lt; Script src = "https: //ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js?ver=4.0" type = "text / javascript" & gt; & Lt; / Script & gt; & Lt; Script src = "http: //l/demorwpspro/wp-includes/js/jquery/jquery.js?ver=1.11.1" type = "text / javascript" & gt; & Lt; / Script & gt; & Lt; Script src = "http: //l/demorwpspro/wp-includes/js/jquery/jquery-migrate.min.js? Ver = 1.2.1" type = "text / javascript" & gt; & Lt; / Script & gt;
What is jquery-ui called before jquery? If so, how to show jquery before jquery-ui? The shurder that exists now includes the first jquery and jquery-ui, but it is not.
check out. Also make sure that you think correctly you think this is a problem.
Comments
Post a Comment