Adding jQuery in WordPress

load up jQuery in your theme
Put the following code in your header.php file in the section:

Call the wp_enqueue_script function before the wp_head function.Now call your own jQuery JavaScript file, after the wp_head function.

Here yourscrip=name of your javascript file.

If you liked this article, please subscribe to our YouTube Channel. You can also stay connected with us on Twitter and Facebook.
Suggested Read:  Wordpress HTTP Headers - Wordpress Security Headers Plugin to Improve Wordpress Security

You may also like...

Leave a Reply

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