The problem is, even if though wrapped in the conditional tag – it stops wp-admin jQuery stuff (sidebar menu dropdowns, dashboard dropdowns) from working. Removing the is_admin makes it work correctly.
However, I need it to be wrapped into the conditional tag, because otherwise I can’t move menu items around…
to have them included in wp_head. Then I use wp_enqueue_script("jquery"); in my header.php BEFORE the wp_head but the jQuery is STILL loaded after my scripts anyway.
Registering Google-hosted version of jQuery forced it to load before my registered scripts to make them work properly. However it made the draggable menu items in Appearance/Menus to stop working. Removing the if(!is_admin()) condition fixes the menu problem, but the dashboard items don’t slide down then (there is no jQuery on the page at all).
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Google-loaded jQuery doesn't work in wp-admin’ is closed to new replies.