WordPress Enqueue Scripts - jQuery


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

Snippet for adding to your functions.php file to enqueue jQuery.


Copy this code and paste it in your HTML
  1. <?php
  2. function my_init_method() {
  3. if( !is_admin() ) {
  4. wp_enqueue_script( 'jquery' );
  5. }
  6. }
  7. add_action('init', 'my_init_method');
  8. ?>

URL: http://support.slidedeck.com/slidedeck/topics/please_walk_me_through_these_steps_im_not_an_idiot_but_pretend_i_am

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.