Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter dixie17

    (@dixie17)

    I inserted an echo statement into the function bda_faqs_load_js which was outputted in the head of the the HTML.

    I know it is not working as when I review the HTML source the required ui.core.js and ui.widget.js are not included on the page.

    If I explicitly declare a javascript with wp_enqueue_script it works e.g.

    function bda_faqs_load_js() {
      wp_enqueue_script('jquery');
      wp_enqueue_script( 'bda-faqs-jquery-ui', plugins_url().'/bda-faqs/bda_faqs.jquery-ui.js', array('jquery'));
    }

    But I really wanted to use the built in versions to keep the plugin as light weight as possible.

    Thread Starter dixie17

    (@dixie17)

    in a plugin file called bda_faqs.php

Viewing 2 replies - 1 through 2 (of 2 total)