How to Hide Sub-Categories in the Sidebar

Prior to Wordpress 2.1, the wp_list_cats() function has a “children” parameter to hide your subcategories. For whatever reason, wp_list_cats() was deprecated, and the “children” parameter was dropped from the new wp_list_categories() function in WP2.1 and onwards.
So how to hide the unsightly subcategories from showing up in your sidebar? You can install and use the new function in the unfold_list_categories plugin by Braydon Fuller.
Or hide it with a quick and dirty trick using CSS. Simply open your style.css file and add the following code. And poof it’s gone
.children { display:none; }
Original post by Genkisan
Tags: 678
Tags: 678