0

I've been building a development site "http://webdesignsalemoregon.com/lpr-settings-1/" and the jQuery code works just fine.

I cloned a clients site and am trying to get it on the new format "http://webdesignsalemoregon.com/harolds-lpr/"

but it seems like the jQuery code isn't working? It seems to be loaded just fine in the header? :/

EDIT

the custom jquery file is "custom.js"

Sparky
98.8k26 gold badges202 silver badges293 bronze badges
asked Apr 23, 2012 at 19:42
2
  • You have to make sure to have the jQuery library embed in your page. If you have firebug you can test it in the console with: window.jQuery and it will yield a function() Commented Apr 23, 2012 at 19:47
  • 1
    As answered by Rocket below... you are loading your custom.js file before jQuery. You need to load jQuery first. Commented Apr 23, 2012 at 19:50

1 Answer 1

2

You need to make sure jQuery is loaded before your scripts. Looking at the site, it seems your scripts are being loaded before jQuery is, so you're getting "jQuery is not defined" in the console.

answered Apr 23, 2012 at 19:44
Sign up to request clarification or add additional context in comments.

1 Comment

Thanks a bunch - I'm not sure how they got out of order, but I just re-enqueued it well above any custom js files. thanks! :D

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.