Advertisement
Guest User

functions.php

a guest
Feb 14th, 2012
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.14 KB | None | 0 0
  1. <?php
  2.    
  3.     // Add RSS links to <head> section
  4.     automatic_feed_links();
  5.    
  6.     // Load jQuery
  7.     if ( !is_admin() ) {
  8.        wp_deregister_script('jquery');
  9.        wp_register_script('jquery', ("http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"), false);
  10.        wp_enqueue_script('jquery');
  11.     }
  12.    
  13. add_theme_support( 'post-thumbnails' );
  14. set_post_thumbnail_size( 550, 80, true ); // Normal post thumbnails
  15. add_image_size( 'single-post-thumbnail', 550, 9999 ); // Permalink thumbnail size
  16.    
  17.     // Clean up the <head>
  18.     function removeHeadLinks() {
  19.         remove_action('wp_head', 'rsd_link');
  20.         remove_action('wp_head', 'wlwmanifest_link');
  21.     }
  22.     add_action('init', 'removeHeadLinks');
  23.     remove_action('wp_head', 'wp_generator');
  24.    
  25.     if (function_exists('register_sidebar')) {
  26.         register_sidebar(array(
  27.             'name' => 'Sidebar Widgets',
  28.             'id'   => 'sidebar-widgets',
  29.             'description'   => 'These are widgets for the sidebar.',
  30.             'before_widget' => '<div id="%1$s" class="widget %2$s">',
  31.             'after_widget'  => '</div>',
  32.             'before_title'  => '<h2>',
  33.             'after_title'   => '</h2>'
  34.         ));
  35.     }
  36.  
  37. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement