Activate JQuery in Wordpress


/ Published in: PHP
Save to your folder(s)

cause i'm so lazy


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.