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

119
Views
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 answers
Answer question

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 Report
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!