Remove jQuery scripts from WPtouch functions
-
Remove jQuery scripts from WPtouch functions
I have WPtouch 4.3.18 plugin deployed on my wordpress site.
In my WP Thema functions.php work fine this function:
/** 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’);
}But on mobile site of WPtouch don’t work and google speed page test show alert
”
-includes/js/jquery/jquery.js?ver=1.12.4
…s/jquery/jquery-migrate.min.js?ver=1.4.1
”
only on mobile site.How can I fix the problem?
There is a different function file in WPtouch?
- The topic ‘Remove jQuery scripts from WPtouch functions’ is closed to new replies.