Advertisement
Guest User

function.php

a guest
Jul 16th, 2013
529
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.76 KB | None | 0 0
  1. <?php
  2.  
  3. function custom_enqueue_scripts() {
  4.  
  5.     wp_deregister_script( 'jquery' );
  6.    
  7.     wp_register_script( 'jquery', get_template_directory_uri() . '/bin/js/jquery-1.10.1.min.js', 'jquery', '1.10.1',TRUE);
  8.     wp_register_script( 'fittext', get_template_directory_uri() . '/bin/js/jquery.fittext.js', 'jquery', '1.0',TRUE );
  9.  
  10.     wp_enqueue_script( 'jquery' );
  11.     wp_enqueue_script( 'fittext' );
  12.    
  13. }
  14. add_action( 'wp_enqueue_scripts', 'custom_enqueue_scripts' );
  15.  
  16. if (function_exists('register_sidebar')) {
  17.  
  18.     register_sidebar(array(
  19.         'name' => 'Widgetized Area',
  20.         'id'   => 'katuhu',
  21.         'description'   => 'This is a widgetized area.',
  22.         'before_widget' => '<div id="%1$s" class="widget %2$s">',
  23.         'after_widget'  => '</div>',
  24.         'before_title'  => '<h4>',
  25.         'after_title'   => '</h4>'
  26.     ));
  27.  
  28. }
  29.  
  30. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement