The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS jquery in wordpress help

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #37267

    I am having trouble getting my jquery to work in wordpress. I have called the script from the functions.php file and I can see it in the header when I view the source.

    function reservations_script(){
    wp_register_script('reservations', get_template_directory_uri() . '/js/reservations.js', array('jquery'));
    // enqueue the script

    I can also see jquery being called in my header of my site

    but if I do a simple test in the header, nothing happens

    I have also tried $jQuery(document)

    Got any ideas?


    jQuery is definitely being loaded? Are you using Google’s CDN or an uploaded copy?

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.