Skip to content

Instantly share code, notes, and snippets.

@wbxpress
Created July 15, 2016 06:21
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save wbxpress/4c57476488590d9428fbc85f6c543f85 to your computer and use it in GitHub Desktop.
Save wbxpress/4c57476488590d9428fbc85f6c543f85 to your computer and use it in GitHub Desktop.
/** 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
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