WordPress Problem with enqueing a script

Posted by casben79 on Stack Overflow See other posts from Stack Overflow or by casben79
Published on 2010-04-03T05:20:30Z Indexed on 2010/04/03 5:23 UTC
Read the original article Hit count: 328

Filed under:
|

I am trying to enqueue a script from the functions.php file for a custom theme. here is the code I am using:

wp_enqueue_script('innerfade','correct/path/to/innerfade.js', array('jquery'), '', false);

I also tried to hardcode from the the functions file like so:

?>
<script type='text/javascript' src="correct/path/to/innerfade.js"></script>
<?php

and both are outputting the following:

correct/path/to/innerfade.js'?ver=2.9.2

so It doesnt seem to be a wp_enqueue_script problem

What I cannot seem to figure is where the hell is the comma after the .js is coming from, it is causing a dead link hence not loading the script, anyone have any ideas??

© Stack Overflow or respective owner

Related posts about Wordpress

Related posts about script