Reputation: 69
If I enqueue jquery from my own server everything works fine and dandy:
add_action('init', 'headsetup');
function headsetup(){
wp_enqueue_script('jquery_script',get_template_directory_uri().'/js/jquery-.8.3.min.js');
}
but if I use the built in wordpress jquery everything falls over:
add_action('init', 'headsetup');
function headsetup(){
wp_enqueue_script('jquery');
}
Jquery is loading, I can see it in the site <head>
but it's not triggering which means the scripts that follow don't work.
Any suggestion?
Upvotes: 1
Views: 438
Reputation: 69
Sorted!
All I had to do was change the way I called jquery.
Instead of:
$("somefunction")
It has to be:
jQuery("somefunction")
It's a wordpress thing...
Upvotes: 1