Enqueue javascript and jQuery
-
I am trying to use this buttons UI in my template. However, it requires its own .js and jQuery library. I think I successfully managed to enqueue the .js in the functions.php using
wp_enqueue_script( 'scripts', get_template_directory_uri() . '/js/jquery-2.1.3.min.js', array( 'jquery' ),'', false); wp_enqueue_script( 'scripts', get_template_directory_uri() . '/js/buttons.js', array( 'jquery' ),'', false);
However, I still can’t get these dropdown buttons to work. What am I doing wrong?
- The topic ‘Enqueue javascript and jQuery’ is closed to new replies.