Skip to content

Instantly share code, notes, and snippets.

@saltcod
Created November 18, 2011 15:58
Show Gist options
  • Save saltcod/1376846 to your computer and use it in GitHub Desktop.
Save saltcod/1376846 to your computer and use it in GitHub Desktop.
Enqueuing scripts in Wordpress
<?php
wp_enqueue_script(‘jquery’) ;
wp_enqueue_script(‘easing’, ‘/wp-content/themes/themeNane/js/jquery.easing.1.2.js’,false,’1.2′) ;
wp_enqueue_script(‘lTabs’, ‘/wp-content/themes/themeNane/js/lTabs.js’, array( ‘jquery-ui-core’, ‘jquery-ui-tabs’)) ;
wp_enqueue_script(‘lightbox’, ‘/wp-content/themes/themeNane/js/jquery.lightbox-0.5.js’,false, ’0.5′);
wp_head();
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment