I’ve decided to create a new category for this blog which is called quick tips (check out the anchor in the sidebar). In this category, you will find a collection of simple tips that can be applied quickly to enhance your computing experience.
Ok, here’s a quick tip for today. If you’re are familiar in working with your Wordpress theme before, you might realised that the subcategories in the categories’ list make the sidebar looks a little bit mess. This might spoilt user’s enjoyment in browsing our site and of the way to solve this problem is by putting this code in our template’s stylesheet.
.children {
display:none;
}
So simple isn’t it? Basically, the function is it will hide the children categories from being displayed alongside main categories in the sidebar. It’s up to you to hide it, or to style the CSS class according to your liking.
April 5th, 2007 at 1:34 pm
mmm… you can use the WordPress category tag parameter to hide/show/tree the sub-categories.
April 5th, 2007 at 8:46 pm
thanks for the info liew!
July 30th, 2007 at 3:02 am
if you using parameter maybe it will be take much time your all category ID in exclude parameter which you want to hide, even if you have hundred child category, but if you using this quick tips is more simpler…
but that just my opinion… thanks