how do you use wp_enqueue_script
-
I want to use the wp_enqueue_script but I just can’t figure it out.
I’ve been all over the codex and this forum trying to sort it and no luck.Can someone help me out? By answering some questions:
All I have to do is replace the :
<script type="text/javascript" src="https://code.jquery.com/jquery-1.5.2.min.js" ></script>
with
<?php wp_enqueue_script( 'jquery' ); ?>
in the head of the header.php file?Should I be putting something in my functions.php file?
It seems like I need to define/register these scripts somewhere for this to work?Thanks, any help appreciated!
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘how do you use wp_enqueue_script’ is closed to new replies.