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!

Related Posts

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

shares