Posted By

Savio on 10/27/10


Tagged

javascript js wordpress jquery


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

stegwee
booski
kwameboame


Activate JQuery in Wordpress


 / Published in: PHP
 

cause i'm so lazy

  1. Add this
  2.  
  3. <?php wp_enqueue_script("jquery"); ?>
  4.  
  5. before
  6.  
  7. <?php wp_head(); ?>
  8.  
  9. then place own jquery code after (!)
  10.  
  11. <script type="text/javascript"
  12. src="<?php bloginfo("template_url"); ?>/js/myownscript.js"></script>

Report this snippet  

You need to login to post a comment.