Jquery navbar. Where to put js files?
-
I am using the twentyten theme and am trying to insert a jquery horizontal navbar on my site(called Magicline)
1) I created a custom page template (code is below)
1) I put my html navbar code in my custom page template(below)
2) I added the CSS code to my child css page (and the code does see it, cause I can control the colors)NOW… don’t know what to do with the js files.
1) I put the following required lines of code in the header.php (before the ending /head)<script src=’jquery-1.7.1.min.js’></script>
<script src=’jquery.color-RGBa-patch.js’></script>
<script src=’example.js’></script>2) I put these 3 files in my Twentyten root, but files are not found (I am assuming, as the navbar does not function. The page looks the same as it does if I do not even upload the js files).
I have tried every combination (putting them in a js folder and changing the path to /js, etc.
I know the navbar works as I have it in a standard html website I built.
My page is at https://doubledoubleny.com/test3/
I would appreciate any help. Thanks.[Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]
- The topic ‘Jquery navbar. Where to put js files?’ is closed to new replies.