-3

I have been struggling to understand the errors on this page. Can someone help me and show me how to fix this page.

https://www.caternow.com.au/richmond-3121-caterers/Fabulous-Catering

It doesn't load properly and gives following error.

  • Uncaught Reference Error - $ is not defined
  • Uncaught Reference Error - JQuery is not defined

While the same code and same css/js works fine at below test site.

http://cater2.tecexperts.com/richmond-3121-caterers/Fabulous-Catering

Any help is appreciated.

Thanks, DK

3 Answers3

2

First of all don't load typehead and typehade.min together.

Second - you are not loading jQuery anywhere. Load it before any other scripts.

Justinas
  • 41,402
  • 5
  • 66
  • 96
2

On the test site you have a script tag in the html:

<script src="http://cater2.tecexperts.com/media/front/js/jquery-1.10.2.min.js"></script>

This loads the jQuery library, but the first page you linked doesn't contain this script tag. (there may be other possible missing tags too)

nagyf
  • 859
  • 5
  • 17
1

include this on the top of your page

<script src="http://cater2.tecexperts.com/media/front/js/jquery-1.10.2.min.js"></script>
Ganesh Putta
  • 2,622
  • 2
  • 19
  • 26