Timeline for How to correctly add JQuery in a WP theme?
Current License: CC BY-SA 3.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 21, 2014 at 11:45 | comment | added | passatgt | I mean jQuery is in WordPress by default, located in the wp-includes folder, so you don't need to use an external source to include the javascript file. You can find all of the libraries included in WordPress in the codex, i updated my answer with a link. Also worth to mention, that jQuery is in no-conflict mode, so instead of $(document).ready(function(){... you should start with jQuery(document).ready(function($){... | |
Jan 21, 2014 at 11:41 | comment | added | AndreaNobili | mmm are you meaning that WP automatically load JQuery in some way and that I have not to manually load it but that I can only pass it as dependency of the other JavaScript that require it? | |
Jan 21, 2014 at 11:38 | history | answered | passatgt | CC BY-SA 3.0 |