Amazon.in Widgets Having Problem Java Script Conflicting ?? - Er Vinay Singh

Having Problem Java Script Conflicting ??

Having Problem Java Script Conflicting ??

Have u faced the problem of java script conflicting during your wordpress theme developmet.No matter how many script you have included in your header or footer file.You don’t need to debug individual files.You have to just copy and paste this code in function.php file in wordpress.

function modify_jquery() {
if (!is_admin()) {
    wp_deregister_script('jquery');
    wp_register_script('jquery', 'https://code.jquery.com/jquery-1.11.3.min.js');
    wp_enqueue_script('jquery');
}
}
add_action('init', 'modify_jquery');

Related posts

Leave a Comment