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

121
Visualizações
Wordpress/JavaScript troubles

I'm working on a Wordpress site and I want to use a sliding gallery that I wrote. I've been trying to enqueue it and I'm not having any luck getting it to work. When I look at the developer tools to see what sources are being pulled/if the console is throwing any errors, I'm not even seeing the JavaScript file show up.

file structure as shown on google dev tools for front-page.php (where the slider will exist) Screenshot of the file structure in the Google Developer tools Source tab

file structure as shown on google dev tools for all other pages enter image description here

functions.php code:

function glv_scripts() {
    wp_enqueue_style( 'glv-style', get_stylesheet_uri(), array(), _S_VERSION );
    wp_enqueue_script( 'script', get_template_directory_uri() . '/js/script.js', array(), null, true );
}
add_action( 'wp_enqueue_scripts', 'glv_scripts' );
about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

I finally realized I was missing the footer call in front-page.php, so it wasn't showing up because I had it set to true for the footer but forgot the footer. :S

about 4 years ago · Juan Pablo Isaza Relatório
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