dominornovus

Calling jQuery

Sep 3rd, 2012
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.92 KB | None | 0 0
  1. add_action('wp_enqueue_scripts','enq_menu_scripts_and_styles');
  2.  
  3. function enq_menu_scripts_and_styles() {
  4.     // UI Core, loads jQuery as a dependancy
  5.     wp_enqueue_script(
  6.        'uicore',
  7.        'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.12/jquery-ui.min.js',
  8.         array('jquery')
  9.     );
  10.  
  11.  
  12.     // UI Theme CSS
  13.     //wp_enqueue_style( 'uicss', 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/base/jquery-ui.css' );
  14.     wp_enqueue_style( 'uicss', 'http://dominornovus.com/wp-content/themes/killylisscountryhouse/jquery/custom-theme/custom-killyliss.css' );
  15.                                                      
  16.  
  17.     // Selectmenu JS
  18.     wp_enqueue_script( 'uisel', 'http://jquery-ui.googlecode.com/svn/branches/labs/selectmenu/ui.selectmenu.js' );
  19.  
  20.     // Selectmenu CSS
  21.     wp_enqueue_style( 'uicss2', 'http://jquery-ui.googlecode.com/svn/branches/labs/selectmenu/ui.selectmenu.css' );
  22.  
  23. }
Advertisement
Add Comment
Please, Sign In to add comment