Hi Irenef,
Can you tell me the hook name of that js file.
Thanks
Thread Starter
Irenef
(@irenef)
Hi Irenef,
Are you loading your own external JS version?
JQuery latest version already comes with WordPress.
We don’t need to add / load own external JS.
Here the correct way to load latest inbuilt JS library.
Code
wp_enqueue_script('jquery');
WordPress Codex Link for more help:
https://codex.ww.wp.xz.cn/Function_Reference/wp_enqueue_script
Hope that will work.
Thanks
Thread Starter
Irenef
(@irenef)
Thanks, but I need de old version (it’s not a function of mine).
But you help me because I find another solution.
I solved in functions.php:
function jquery_enqueue() {
wp_deregister_script(‘jquery’);
wp_register_script(‘jquery’, ‘//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js’, false, null);
wp_enqueue_script(‘jquery’);
}
if (!is_admin()) add_action(‘wp_enqueue_scripts’, ‘jquery_enqueue’, 11);
Thanks!!!!