How to add jQuery to your WordPress Theme. The right way???

No, below is wrong. See my new post on precisely the correct way of using jQuery on your WordPress site.

I’m not going to get into whether or not you should use the jQuery that comes with WordPress or the one that Google offers cause I don’t know and don’t care. I’ve heard many arguments both ways citing load time, automatic updates, what if Google goes down and maybe it’s already loaded because of the visitors browser history, so choose a side and take your pick. In my opinion they both work. Anyway, below is the Google method. I also included one other script to load enqueue to show you how to add more than one script. So, if you have other custom scripts you want to add, copy the “other scripts” block and add whatever your theme needs.

Leave a Reply

Your email address will not be published. Required fields are marked *

+ 42 = 43