I have this in my functions.php
file and I can't get jQuery to load in the footer. The includes
file loads in the footer fine, though. What else do I need to do?
function starter_scripts() {
wp_enqueue_style( 'starter-style', get_stylesheet_uri() );
wp_enqueue_script( 'jquery', '', '', '', true );
wp_enqueue_script( 'includes', get_template_directory_uri() . '/js/min/includes.min.js', '', '', true );
}
add_action( 'wp_enqueue_scripts', 'starter_scripts' );
Aucun commentaire:
Enregistrer un commentaire