__( 'Primary Sidebar', 'writee' ), 'id' => 'primary-sidebar', 'description' => __('Primary sidebar of the theme. Display on left or right side of the theme','writee'), 'class' => '', 'before_widget' => '', 'before_title' => '
', 'after_title' => '
' ) ); /***********************************************************/ ## Footer Vertical Sidebar Columns. /**********************************************************/ $counter = 0; $number_of_widgets = 3; while ( $counter < $number_of_widgets ) : $counter++; register_sidebar( array( 'name' => __( 'Footer ', 'writee' ) . $counter, 'id' => 'footer-' . $counter, 'description' => __( 'Footer bottom area vertical widgets.', 'writee' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '
', 'after_title' => '
') ); endwhile; } /*****************************************************************/ ## category widget custom filter. /*****************************************************************/ add_filter('wp_list_categories', 'writee_category_count_span_inline'); function writee_category_count_span_inline( $output) { $output = str_replace(' (','(',$output); $output = str_replace(')',') ',$output); return $output; } /*****************************************************************/ ## archive widget custom filter. /*****************************************************************/ add_filter('get_archives_link', 'writee_archive_count_inline'); function writee_archive_count_inline($links) { $links = str_replace(' (', ' (', $links); $links = str_replace(')', ')', $links); return $links; } ?>