Home › Forums › JavaScript › Registering and referencing jQuery scripts the right way in WordPress › Re: Registering and referencing jQuery scripts the right way in WordPress
July 23, 2011 at 2:50 am
#83813
jonedwards
Participant
Hey Doc.
Thanks for your feedback – appreciate it. I do however, have most of that down already – from going through all the DigWP tutorials.
How though, do I reference my own js (jquery) files for my theme? Do I enqueue them in the same way as we did the Google-hosted jQuery – i.e. in functions.php? OR, do I place them in the
of my header.php file?As I mention above, the load order of these things is important, so I’m looking for a solution that gets things loaded, not only the right place, but in the right order (CSS first, then Google-hosted jQuery, then my theme scripts).
Thanks
Jon