• Resolved gulliver

    (@gulliver)


    I know this has been covered many times, but I can’t fully grasp it.

    As an example, I have a script ‘us-et.js’ located at js/clock/ in my theme folder.

    I’m unsure how to specify the parameters… there’s no $deps, no $ver, and I want it to load in the footer.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    wp_enqueue_script('js-clock', get_stylesheet_directory_URI() . '/js/clock/us-et.js', array(), false, true);

    Thread Starter gulliver

    (@gulliver)

    Excellent. Thanks. 🙂

    It’s interesting – now you’ve shown me, I can better understand the Codex info about it.

    Thanks again.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Enqueue scripts.’ is closed to new replies.