Created
July 15, 2016 06:21
-
-
Save wbxpress/4c57476488590d9428fbc85f6c543f85 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** 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'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We have found some kind of mistake, when a plugin is installed not load Javascript files on the Front-End.