Advertisement
Guest User

functions.php

a guest
Feb 6th, 2012
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.60 KB | None | 0 0
  1. <?php
  2. add_filter('comments_template', 'legacy_comments');
  3.  
  4. function legacy_comments($file) {
  5.  
  6.     if(!function_exists('wp_list_comments')) : // WP 2.7-only check
  7.         $file = TEMPLATEPATH . '/legacy.comments.php';
  8.     endif;
  9.  
  10.     return $file;
  11. }
  12.  
  13. if ( function_exists('register_sidebar') )
  14.     register_sidebar(array(
  15.         'name' => 'Sidebar',
  16.         'before_widget' => '<li>',
  17.         'after_widget' => '</li>',
  18.         'before_title' => '<h2>',
  19.         'after_title' => '</h2>',
  20.     ));
  21.  
  22. add_action( 'init', 'register_my_menu' );
  23.  
  24. function register_my_menu() {
  25.    register_nav_menu( 'primary-menu', __( 'Primary Menu' ) );
  26. }
  27.  
  28. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement