I am working on a custom home page for my prestashop website.
I don't use the layouts because my homepage have to be clean and I don't need stuff like header and footer and menu etc
Using smarty global variables, I call my jquery in the <head>
tag like this
<script src='{$urls.js_url}jquery.js'></script>
When I access my page online, the url is correct (mysite.com/mytheme/js/jquery.js) and if I go to it, I can see the jquery file.
and before my closing <body>
tag, I call my "home custom" js file
<script src='{$urls.js_url}my_script.js'></script>
which start like this
$(function).ready(function(){
My browser throw me the error
Uncaught ReferenceError: $ is not defined
which is weird since Jquery is loaded at the very begining. I'm very confused
EDIT
Even if I copy the jquery code and put it in a <script>
tag within <head>
, I got the error