Hello, how are you doing?
I am using WordPress 3.1.1, and am having an issue getting JQuery to Fire Off, it ain’t working in my theme.
This is what I have:
// Load jQuery
if ( !function_exists(core_mods) ) {
function core_mods() {
if ( !is_admin() ) {
wp_deregister_script('jquery');
wp_register_script('jquery', ("//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"), false);
wp_enqueue_script('jquery');
}
}
core_mods();
}
This is the Scripts:
This is what I am trying to Fire Off:
// remap jQuery to $
(function($){})(window.jQuery);
/* trigger when page is ready */
$(document).ready(function (){
alert('test');
});
Can anyone help me?