Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

222
Views
Does anyone know why is Wordpress not able to detect my JQuery File?

I was recently migrating my static Jquery file to CDN. But I don't know its not recognizing. I have inserted this code in functions.php

add_action( 'wp_enqueue_scripts', 'jquery_bind' );
function jquery_bind() {
// instead of "jquery-core" just "jquery", to disable jquery-migrate
wp_deregister_script( 'jquery-core-js' );
wp_register_script( 'jquery-core', 'https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js',false);
wp_enqueue_script( 'jquery' );
}

add_action( 'wp_enqueue_scripts', 'jquery_migrate_bind' );
function jquery_migrate_bind() {
wp_deregister_script( 'jquery-migrate-js' );
wp_register_script( 'jquery-core', 'https://cdnjs.cloudflare.com/ajax/libs/jquery-migrate/3.4.0/jquery-migrate.min.js',false);
wp_enqueue_script( 'jquery' );
}

My console is still not importing the script to my header section and I am getting this error:

console_logs

As you can see the cdn file is not in the tag

header_section

Also, how can I remove these script links I am not able to find it inside my functions.php

about 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!