How do I call for two js files into a custom template?
In your theme’s functions.php: function my_theme_slug_enqueue_script(){ if(is_page_template(‘path/to/template/relative/to/theme/directory/root/template_file.php’)){ wp_enqueue_script( ‘some_unique_string_name’, ‘path/to/js/file/script.js’, array(), false, true ); } } add_action( ‘wp_enqueue_scripts’, ‘my_theme_slug_enqueue_script’ ); Change the values in my snippet to your requirements (and you need to call wp_enqueue_script() twice, once for each of your JS files). The third parameter allows you to tell WordPress what other scripts this … Read more