Problem with wp_enqueue_script
-
I try to us wp_enqueue_script to load my javascript, here is my code:
<?php wp_enqueue_script('slider','/wp-content/themes/less/js/slider.js',array('jquery'),'1.0'); ?>It’s not working, when I look into the source, it turns to be:
<script type='text/javascript' src='http://localhost/wp/wp-content/themes/less/js/slider.js?ver=2.9.2'></script>?ver=2.9.2 is added to the end, I guess this is the reason, how can I fix it.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Problem with wp_enqueue_script’ is closed to new replies.