Single Ad Listing (Sidebar): Delete Subcategories box
I found a mod on eliminating the category/subcategory count in the single ad sidebar when there are zero subcategories/categories. However, I would like to eliminate this box completely from the sidebar. I tinkered some with the sidebar.php file--managed to delete all text in the box, but that's about it without messing up the whole page. Any suggestions? This is the section I had been tweaking:
<?php
if (is_category()) {
$this_category = get_category($cat);
if ((count(get_term_children($this_category->cat_ID, 'category') > 0))) {
?>
<div class="shadowblock_out">
<div class="shadowblock">
<h2 class="dotted"><?php _e('Sub Categories', 'cp') ?></h2>
<ul>
<?php
// show_count=0 causes undefined index notice in WP3.0. Set to 0 to get rid until they fix in
WP.
$catQueryString = 'hide_empty=0&orderby=id&show_count=0&title_li=&us e_desc_for_title=1&taxonomy=category&depth=0&child _of=' . $this_category->cat_ID;
wp_list_categories($catQueryString);
?>
</ul>