Where to place my wp_enqueue_script
-
Seems like all the examples that I can find in codex show the wp_register_script and the wp_enqueue_script in the same function. If I only want to use a particular script in a single page it seems to me that I need to place that wp_enqueue_script in that page header. Otherwise the script will be loaded all the time. Right?
So, wouldn’t I register the script in my function.php and then enqueue it in my page header?Very confusing…..!
Thanks
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Where to place my wp_enqueue_script’ is closed to new replies.