Menü schliessen
Created: May 16th 2025
Last updated: May 16th 2025
Categories: Common Web Development,  IT Development,  JavaScript Development,  Wordpress
Author: Tim Fürer

WordPress: Remove jQuery from Frontend

Tags:  jQuery,  PHP,  wordpress
Donation Section: Background
Monero Badge: QR-Code
Monero Badge: Logo Icon Donate with Monero Badge: Logo Text
82uymVXLkvVbB4c4JpTd1tYm1yj1cKPKR2wqmw3XF8YXKTmY7JrTriP4pVwp2EJYBnCFdXhLq4zfFA6ic7VAWCFX5wfQbCC

By default, WordPress enqueues its version of jQuery into the frontend. If you'd like to remove that version of jQuery (perhaps because you'd like to enqueue your own), you can do so using the following script (you can add it to your functions.php, for example):

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