Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • And yes, you do need to replace the $ signs with jQuery – with an uppercase Q – in the head/body section when you call the script. But not in the file in the JS folder that gets enqueued – that one can use regular $ signs.

    Thanks for the reply – I have figured it out. For the record, it is a multi-step process:

    You need to place your JS in a file of its own (not include in the head), and save this in the JS folder in your WP install.

    Then in functions.php you need to enqueue this script with a url pointing to it. This allows WP to recognize it as kosher/compatible. As far as I can tell, you don’t need to ‘register it’, only enqueue it.

    Then, the head (or body, I assume, but head worked for me), you call this script as you would if you had simply embedded the script in the head in a non-WordPress situation.

    The exact code for each section of this obviously depends on your purposes, but this is the generic process needed to get anything working. Why this isn’t stated so clearly elsewhere on the web is a mystery to me. Hope this helps someone!

    Hi, sorry to hijack this thread but I couldn’t see where else to contact you.

    I am having the exact same problem as you posted here:
    http://wordpress.org/support/topic/jquery-not-working-1

    You closed the topic, so I assume you were able to resolve this, but you did not post what the solution was…?

    I have scoured the web high and low and have not been able to make any progress. Please get in touch/reply if you can help! I am sure this will also be of use to others.

    Thanks

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