12/13/2016 - 11:50 AM

Include jQuery the right way

Include jQuery the right way

//* Do NOT include the opening php tag shown above. Copy the code shown below.

WordPress already includes a copy of jQuery so there is actually no need to upload it on to your server. It must be above the wp_head function 

<?php wp_enqueue_script("jquery"); ?>

<!-- You can now call your script after the wp_head function. -->