'Primary Navigation Slot' ) ); } } } // Remove post formats box from sidebar in admin interface if (is_admin()) { function my_remove_meta_boxes() { remove_meta_box( 'formatdiv', 'post', 'side' ); } add_action( 'admin_menu', 'my_remove_meta_boxes' ); } // Register widgetized area function theme_widgets_init() { if ( function_exists( 'register_sidebar' ) ) { register_sidebar( array( 'name' => 'Primary Widget Area', 'id' => 'primary-widget-area', 'description' => 'The primary widget area', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' ) ); } } //Register sidebars by running theme_widgets_init() on the widgets_init hook. add_action( 'widgets_init', 'theme_widgets_init' ); // Sets the post excerpt length to 40 words function theme_excerpt_length( $length ) { return 40; } add_filter( 'excerpt_length', 'theme_excerpt_length' ); // Add rel="nofollow" to Blogroll links function nofollow_blogroll( $links ) { foreach($links as $link) { $link->link_rel .= ' nofollow'; $link->link_rel = trim($link->link_rel); } return $links; } add_filter('get_bookmarks', 'nofollow_blogroll'); // Add rel="nofollow" to Tag links function nofollow_tag($text) { return str_replace('rel="tag"', 'rel="tag nofollow"', $text); } add_filter('the_tags', 'nofollow_tag'); function nofollow_tag_cloud($text) { return str_replace(' 1 ) { echo "\n"; echo "\n"; } } add_action( 'wp_head', 'canonical_for_comments' ); ?>