Online Forum To Support Coders With Technical Assistance - Read Write Execute

Remove default jquery from wordpress

Ankit Agrawal
Ankit Agrawal
Published on April 2, 2018 · 1 min read
WordPress themes comes with a default jquery if you want to remove that jquery then write following code in functions.php

if (!is_admin())
{
	add_action("wp_enqueue_scripts", "ce_enqueue_scripts");
}

function ce_enqueue_scripts()
{
	wp_deregister_script('jquery');
}

Was this article helpful?
Ankit Agrawal

Ankit Agrawal

Author & Senior Engineer at CodeExecute

Writing practical engineering guides, debugging real-world bottlenecks, and creating free tools for developer productivity.

← Previous Article Javascript Hoisting Next Article → Strip HTML Tags using Javascript