How to Hide or Style your Subcategories in WordPress


Subcategories are great because it helps us sort content, but sometimes it looks ugly in the template. In this tutorial, we will show you how you can either hide the subcategories, or you can style them with one single code snippet.

First open your style.css, and then add the following code to hide the sub categories:

.children {

Now you can also use the same code to style them as well for example like this:

.children {
padding: 0 0 0 5px;
margin: 0 0 0 2px;
border-left: 1px solid #333;

Feel free to change the code to meet your standards. People actually thought this would be a very hard thing to do, but this is actually very easy.