I need help with wp_enqueue_script !!
-
I am having issues getting my code to work! Each works independently, but not collectively. If i comment out the two of the three call code works fine…but i can seem to get multiple call to function properly… Any help?
function nix_scripts()
{
wp_enqueue_script( ‘toggle’, get_template_directory_uri() . ‘/js/toggle.js’, array( ‘jquery’) );wp_enqueue_script( ‘tabs’, get_template_directory_uri() . ‘/js/tabs.js’, array( ‘jquery’) );
wp_enqueue_script( ‘accordion’, get_template_directory_uri() . ‘/js/accordion.js’, array( ‘jquery’) );
}add_action( ‘init’, ‘nix_scripts’ );
The topic ‘I need help with wp_enqueue_script !!’ is closed to new replies.