Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

223
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda