Return to Snippet

Revision: 35369
at November 6, 2010 04:07 by oriontimbers


Initial Code
<?php 
	function my_init_method() {
		if( !is_admin() ) {
			wp_enqueue_script( 'jquery' );
		}
	}
	add_action('init', 'my_init_method');
?>

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

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

Initial Title
WordPress Enqueue Scripts - jQuery

Initial Tags
php, wordpress, jquery

Initial Language
PHP