Troubleshooting
Fixing "jQuery is not defined" in WordPress
The script ran before jQuery existed on the page, or on a page where nothing asked WordPress to load jQuery at all. The fix is to declare the dependency, not to add another copy of the library.