Linking to javascript files
-
Hi,
I am having a few issues with my template file. I have a image viewer which requires javascript to function. The javascript files are in a folder within my theme called js. I have linked the required javascript files to my index.php page through using the following code:
<script type=”text/javascript” src=”js/jquery-1.2.6.js”></script>
<script type=”text/javascript” src=”js/startstop-slider.js”></script>I have tested this as a oridnary PHP page and it functions fine. However when I upload it to WP it doesn’t work. Do I need my js folder to be located elsewhere outside of the theme? or do I need a different piece of code to include it?
Any help would be great.
Thanks
The topic ‘Linking to javascript files’ is closed to new replies.