There are currently two copies of jQuery loaded on site:
- In header there is jQuery bundled with WordPress, likely requested by some plugin.
- In footer there is jQuery from Google CDN, likely added by your code?
Obviously this is one too many. There are couple of ways to handle it:
- If you are fine with using bundled copy you need to register/enqueue your scripts and declare
jquery
in dependencies, see in Codex:wp_register_script()
,$deps
argument. - You can re-register jQuery to Google CDN, still good idea to register your script with it as dependency.
Your code seems fine except this at end php wp_head();
, php
makes no sense, and wp_head()
call should be in theme.