• 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?

Viewing 16 replies (of 16 total)
  • Thread Starter prophecym

    (@prophecym)

    Still no luck with the .js code. I tried both changing the handle name, and the file name. As a side note, thinking maybe the other registered scripts have something to do with this, I commented out all of them except the unicorn-buttons.js. That didn’t work either.

Viewing 16 replies (of 16 total)
  • The topic ‘Enqueue javascript and jQuery’ is closed to new replies.