wp_enqueue_script – how do I use it?
-
Hi there,
I want to start using the javascripts that are included with WordPress, but I am having a hard time trying to use them. Particularly I would like to use Jquery.
I edited my header.php and added the following line:
<?php wp_enqueue_script(‘jquery’); ?>
as per the reference in: http://codex.wordpress.org/Function_Reference/wp_enqueue_script
But this doesn’t seem to work. I was wondering if THEME EDITORS could make use of the JS files that come with WordPress, or if we need to download and install scripts separately.
The reason why I would like to use the built-in scripts is that it would be easier to maintain (/me thinks).
Thanks for the help
Cheers,
P.
The topic ‘wp_enqueue_script – how do I use it?’ is closed to new replies.