Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

12
  • EDIT: It looks like it is loading the JS file, but the code on the JS file doesn't work. (It works if I deregister the default jQuery). | Unfortunately, the fixed code isn't working :( Commented Dec 23, 2014 at 20:37
  • I just tested it, and it's working fine. I think in your theme some other function is overriding the output. Search for other wp_enqueue_scripts functions... Commented Dec 23, 2014 at 20:41
  • I've edited the comment. Please read that :) Commented Dec 23, 2014 at 20:42
  • That's totally different topic why your code in JS files are not working. The main reason for JS code not working with core jQuery but working with external jQuery could be that the core jQuery runs under noconflict mode. And your JS code is not. You will need to change your JS code for jQuery noconflict. Commented Dec 23, 2014 at 20:46
  • The thing is, I'm loading the latest jQuery from code.jquery.com/jquery-latest.min.js and it works. So what may cause the conflict? Commented Dec 23, 2014 at 20:50