jQuery enqueue_script breaking jQuery Objects
-
Not sure what’s going on. I added the following:
if ( !is_admin()){ wp_deregister_script('jquery'); wp_register_script('jquery', ("http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"), false, '1.4.3'); wp_enqueue_script('jquery'); }to correctly load jQuery into WordPress and it shows it being loaded in the code
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js?ver=1.4.3'></script>
But the items I have using jQuery are broken like the script isn’t loading.If I manually add the jQuery script into the header and delete the jquery.js file from the wp-includes folder, the items work correctly (but the admin area jQuery items stop working…).
Anyone know why this is happening?
Thanks.
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
The topic ‘jQuery enqueue_script breaking jQuery Objects’ is closed to new replies.