0

I am working on WordPress Site and it's showing this error in console, again and again. If I am running my site on local environment than it doesn't having any issue. But after uploading on server, it shows j Query errors that

TypeError: jQuery is undefined

And I can't load my site, because of this issue.

1

1 Answer 1

2

Make sure jQuery library is referenced on your site.

Please add to the page:

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script> 

A still better way is to go to the above link and store the js in a xxx.js file and then refer to this file in the script's src property.

Sign up to request clarification or add additional context in comments.

1 Comment

Yea I found the issue, jQuery is also loaded but having broken path, so I updated my db and path and it resolved all my problem.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.