WordPress newbie here. I like the software a lot, but something that has been frustrating me for 2 whole hours now is the apparent impossibility of removing the categories from the nav bar.
I’m using WP 2.8 and the “7Color” theme. Now I want to remove the categories from the navbar. (I wouldn’t mind removing the meta data from the sidebar, either, but that’s another issue :P) Now, I’ve gathered that I’m supposed to delete/edit the list_category code, etc.
Trouble is: That line of code isn’t there. I know I sound like a total dolt, but it isn’t. It’s not in the header.php, the index.php, or the css style sheet. I have searched all three for the terms. This piece of code simply doesn’t show up.
So, I figured it was a widget-type deal. It isn’t, though. In fact, according to my WP admin area, even my sidebar is *empty*; — even though it has several links in it.
I am confused. Why might this be, and how *do* I get rid of the category link in the nav bar? I hope you guys can offer a newb some guidance.
Can you include a link to your site so we can take a look? Thanks,
Appears you are looking for wp_list_categories. Open up the sidebar.php file and delete the following:
<li id="categories"> <h3><?php _e( 'Categories', 'sandbox' ) ?></h3> <ul> <?php wp_list_categories('title_li=&show_count=0&hierarchical=1') ?> </ul> </li>
This will remove the categories from the sidebar. If you want to remove them from the header navigation then open functions.php and look for the following on line 29:
// Category list. You can remove this category list, by disable next line $menu = wp_list_categories('title_li=&show_count=0&hierarchical=1');
Then just comment this out like so:
// Category list. You can remove this category list, by disable next line //$menu = wp_list_categories('title_li=&show_count=0&hierarchical=1');
- The topic ‘Categories *CANNOT* be removed from navbar’ is closed to new replies.