Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
/** Remove jQuery scripts from begining */
add_action('wp_enqueue_scripts', 'wbxp_script_remove_header');
function wbxp_script_remove_header() {
wp_deregister_script( 'jquery' );
/** Load jQuery script at the end */
add_action('genesis_after_footer', 'wbxp_script_add_body');
function wbxp_script_add_body() {
wp_register_script( 'jquery', '', false, null);
wp_enqueue_script( 'jquery');
Copy link

loorlab commented Sep 22, 2016

We have found some kind of mistake, when a plugin is installed not load Javascript files on the Front-End.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment