Can't link to Javascript files
-
Hi,
I am running an offline theme in WAMP on Windows 7, and have installed in C:\ rather than Program Files to avoid security issues/annoyances.
I have used wp_enqueue_scripts twice, firstly for jquery and then jcarousellite. The problem is, the browser can’t ‘see’ jcarousellite. When I click on the link in the HTML file, it throws up a 500 Internal Server Error. This does not happen for jquery, which is linked through wp-include rather than wp-content.
In header.php this is written thus:
wp_enqueue_script("jquery"); wp_enqueue_script("jcarousel",get_bloginfo('template_directory')."/scripts/jcarousellite.js",array('jquery'));
This comes through as:
<script type='text/javascript' src='https://localhost/sbl/wp-includes/js/jquery/jquery.js?ver=1.4.4'></script> <script type='text/javascript' src='https://localhost/sbl/wp-content/themes/sbl3/scripts/jcarousellite.js?ver=3.1.3'></script>
Is WordPress causing this or WAMP? I’d be most grateful of any help as I’ve tried everything I can think of!
Gareth
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Can't link to Javascript files’ is closed to new replies.