H
H
habrdima2018-05-19 15:33:01
CMS
habrdima, 2018-05-19 15:33:01

I can't remove jquery from wordpress, what should I do?

I can’t remove jquery from wordpress , I
use different methods, I remove the code from functions.php and the functions itself, but this is an experiment) I
insert the code
remove_action ('wp_enqueue_scripts', 'jquery_init');
or
if ( !is_admin() ) wp_deregister_script('jquery');
but jq either remains or is deleted but not all files and writes an error that it does not see the jquery function,
what else can be done?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Orkhan Hasanli, 2018-05-19
@azerphoenix

I usually use the following: wp_deregister_script

wp_deregister_script('jquery');
  wp_register_script('jquery', get_template_directory_uri() .
    '/js/jquery-3.2.1.min.js');
  wp_enqueue_script('jquery');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question