Skip to content

Instantly share code, notes, and snippets.

Embed
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', 'https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js', false, null);
wp_enqueue_script( 'jquery');
}
@loorlab

This comment has been minimized.

Copy link

@loorlab 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