How to properly enqueue jQuery in a WordPress Site - ThePixelPixie

PHOTO EMBED

Sat Nov 25 2023 07:59:24 GMT+0000 (Coordinated Universal Time)

Saved by @dmsearnbit #javascript

function my_scripts() {
     if(!is_admin() {
          wp_deregister_script('jquery');
          wp_enqueue_script('jquery', '//code.jquery.com/jquery-latest.min.js');
     }
}
add_action('wp_enqueue_scripts', 'my_scripts');


content_copyCOPY

https://www.thepixelpixie.com/how-to-properly-enqueue-jquery-in-a-wordpress-site/