Hiding sub categories in Wordpress - a quick hack
Here is a quick hack to hide sub categories in Wordpress. This has the added advantage that even though sub categories are not visible, they will still get crawled by search engines. For example, the categories you see on the right are only the root categories.
All you have to do is to add the following line to the Wordpress stylesheet.
.children { display: none; }
This works because the secondary level categories have “children” as the style class.


