Include jQuery in WordPress: The Proper Way
You may or may not know it, but at the moment, I still have time to do most of the work that my company requires by myself. This includes all the coding and theme development. I’m not going to say that it has always been easy. I have definitely been through hard times figuring how certain things work.
My background doesn’t include any technical skills with computer. As you can see in my small biography, I did not study any kind of computer language, but I am very very curious! This is probably one of my strongest skills.
To make it work, I had to load jQuery in the header of my blog. As for most things in life, there is a fast way, and there is a right way of doing that. When I do things, I like doing them well, so I searched for the right way, and here it is: you need to copy this code:
<?php wp_enqueue_script("jquery"); ?>
just before this line in your blog header.php file:
<?php wp_head(); ?>
wp_head function. It should look like this:
Now tell me what kind of animation do you want to add to your website in the future? (I might make a tutorial for you if needed).