##################################### #an ordinary theme - WordPress theme# ##################################### Theme Name: an ordinary theme Theme URI: http://www.blog.ordinary.ch/?page_id=269 Version: 1.7 Description: A simple one-column theme with two corresponding random pictures in the header and a suckertree navigation thereunder. Partly widget ready. Please read the readme.txt file. Author: Fabian Schmid Author URI: http://www.blog.ordinary.ch/ Tags: one-column, fixed-width, white, black, light Some information **************** * For changing the number of header pictures, go to the randombanner.php file in the theme directory and edit the second digit in line 3 * For removing or adding a navigation item go to sidebar.php and remove or add it at the bottom of the file * For changing footer and stuff, open the translation.php file and change what you like. * For displaying the number of posts in each category, you have to edit two files: - the sidebar.php file in the theme direction - and the WordPress core file wp-includes/classes.php In the classes.php find the following function: function start_el(&$output, $category, $depth, $args) Inside that function find $link .= $cat_name . ''; And change it to $link .= $cat_name . ''; This removes the closing to the tag and will allow the post count to be part of the link. But of course the links aren’t closed so we have to add that closing tag to the following bit of code found in the same function: Find this if ( isset($show_count) && $show_count ) $link .= ' (' . intval($category->count) . ')'; and add the at the end - as you can see here if ( isset($show_count) && $show_count ) $link .= ' (' . intval($category->count) . ')'; After that, find the following line in the sidebar.php file: wp_list_cats('optioncount=0'); and replace it with this one wp_list_cats('optioncount=1'); The category dropdown is now displayed with the number of posts behind each category in brackets. Change log ********** * Version 1.8 (12.02.2009) Increased the font size in entries Altered the font family in entries Added some additional font family stlyes if default font isn't available Lit the 'add comment' button * Version 1.7 (05.02.2009) Removed the border for image links Altered index.php, single.php and search.php for code cosmetics * Version 1.6 (29.01.2009) Removed the post counting for each category in brackets due to necessary changes in wp core files Added an instruction for readding the post counting for categories in brackets Lit the alternating comments background color * Version 1.5 (24.01.2009) Added min-height for overall div #contentwrap Added important notice to readme Altered header.php for 404 error page reasons * Version 1.4 (23.01.2009) Altered comments.php for style reasons * Version 1.3 (19.01.2009) Altered footer for copyright reasons Removed non-existent images Adjusted theme tags * Version 1.2 (15.01.2009) Altered style.css for style reasons * Version 1.1 (10.01.2009) Altered style.css for style reasons * Version 1.0 (12.12.2008) Initial version Thank you for using my theme! For questions or feedback, complaint or love letters use blog (at) ordinary.ch