Advertisement
Guest User

functions.php

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