Remove WordPress default jQuery from front end

We can remove default wordpress jQuery from the frontend so that to avoid conflict with the jQuery in the theme. In order to remove the default jQuery add the following code in the function.php file in the theme folder.

add_action('wp_enqueue_scripts', 'no_more_jquery');
function no_more_jquery(){
    wp_deregister_script('jquery');
}

Sharing is caring!

2 thoughts on “Remove WordPress default jQuery from front end”

  1. my website is showing not secure even after buying ssl certificate due to jQuery migrate…how can i solve this problem? please help me

    Reply
    • Hi,

      I can see some of the images in your website is not loading from https url, its using the http protocol.

      If you want your website completely ssl enabled, all the source files (src) files should be called using https protocol.

      Reply

Leave a Comment

DON’T MISS OUR GIVEAWAYS!
Subscribe To Newsletter
Subscribe to our newsletter and get all the latest updates offers and giveaways right in your inbox.
Subscribe
Give it a try, you can unsubscribe anytime.
close-link

Join Free Giveaway!

Subscribe to our newsletter to get latest offers and giveaways!
SUBSCRIBE
close-link