• I’ve created a sub-domain and installed WordPress. The following code is in the functions.php file:

    function add_jqwidgets() {
        wp_register_script('tables', get_template_directory_uri() . '/js/tables.js', array('jquery'),null, false);
        wp_enqueue_script('tables');
    }

    I’m getting the following error:

    jquery.min.js:2 jQuery.Deferred exception: createTable is not defined ReferenceError: createTable is not defined
    at HTMLDocument.<anonymous>

    I’ve been hacking away at this for days. Any help would be appreciated.
    Bob K.

  • The topic ‘wp_enqueue_script not working in sub-domani’ is closed to new replies.