WordPress Problem with enqueing a script
- by casben79
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??