Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #14621

    I made a jquery script for a “custom” fluid accordion.

    I attempted to put the script in the wordpress page (after the content), where it didn’t execute. then I tried in the footer. still didn’t execute. looked at the console, it looked like I needed to pass ($) in. So I did through an Anonymous function. It then said it can’t execute an undefined function… so…

    Why doesn’t it Recognize Jquery (because I can see it clearly in the Head) and what do I do to Pass Jquery in (or however i can get the script to work)

    Thanks,

    Alex

    #84227

    Hello,

    Place the jquery script on footer.php above the </body> tag. Also, you might need to include jQuery.noConflict(); at the start of your script.

    Regards,

    Ismael

    #84228

    Thanks! I didn’t think about jQuery.noConflict. I thought it only removed control of $- didn’t think it could put it back.

    I appreciate the help, it works flawlessly.

    Thanks,

    Alex

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

The topic ‘Custom Jquery Script- Where to put & do I have to pass $’ is closed to new replies.