JQuery codes not working anymore on my website

how do i active and deactive jqeury in my website

Hi there,

JQuery is loaded by Wordpress by default and is a Javascript library that is commonly used by plugins. Also, your site is heavily dependent on JQuery codes based on the customization you have added so please note that removing JQuery might present issues to your site. But in case you really want to get rid of JQuery, you can use the wp_dequeue_script.

This code should be in the functions.php file of the child theme.

function remove_jquery() {
        wp_dequeue_script( 'jquery' ); 
} 
add_action( 'wp_print_scripts', 'remove_jquery', 100 );

Hope this helps.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.