Shuvro Jyoti
Shuvro Jyoti

Reputation: 49

jQuery link is not working in WordPress functions.php

This is my code.In browser you can see that all links are working properly but jQuery in absence their. I also tired this way (wp_enqueue_script('jquery',get_template_directory_uri().'/js/jquery.js',array(),'1.9.1',true);) but same case happened. Actually I want to load jquery from wp includes folder.What can I do ?

 [![][1]]2

Upvotes: 0

Views: 177

Answers (1)

B.Pukhalskyi
B.Pukhalskyi

Reputation: 51

If you want to load custom jquery, you should firstly remove default lib by

wp_deregister_script('jquery');

Then you can write

wp_enqueue_script('jquery',get_template_directory_uri().'/js/jquery.js',array(),'1.9.1',true);

Upvotes: 1

Related Questions