Problems with wp_enqueue_script in functions.php
-
Hi WP forums,
I’m pretty much a beginner developer and am having some issues getting jquery (and other js) to run through the functions.php theme file.
<?php function load_scripts() { wp_enqueue_script( 'jquery' ); } add_action('init', 'load_scripts'); ?>
That the only bit of code within my functions.php. When I use the chrome developer console, I can see that jquery is not loading. Am I missing a step?
Many thanks in advance for any help I can get.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Problems with wp_enqueue_script in functions.php’ is closed to new replies.