• Hi,

    First of all thanks and congratulations for this amazin plugin.

    Now I am facing a problem that don’t know how to solve. As i load jQuery library in the footer of the page I am getting this error in the browser console:

    Uncaught ReferenceError: jQuery is not defined
    at (index):14

    Is it possible to update that functionality just with Javascript? if that is not possible, how could I just load the jQuery library in the header and not the others? I’m using this in the functions.php file to meve all the libraries to the footer:

    remove_action(‘wp_head’, ‘wp_print_scripts’);
    remove_action(‘wp_head’, ‘wp_print_head_scripts’, 9);
    remove_action(‘wp_head’, ‘wp_enqueue_scripts’, 1);
    add_action(‘wp_footer’, ‘wp_print_scripts’, 5);
    add_action(‘wp_footer’, ‘wp_enqueue_scripts’, 5);
    add_action(‘wp_footer’, ‘wp_print_head_scripts’, 5);

  • The topic ‘jQuery error.’ is closed to new replies.