Archana Sharma
Archana Sharma

Reputation: 2071

TypeError: jQuery is undefined WordPress

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.

Upvotes: 0

Views: 567

Answers (1)

Prachi Mishra
Prachi Mishra

Reputation: 98

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.

Upvotes: 2

Related Questions