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 {
display:none;
}
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.

Comments

Popular posts from this blog

Low-Side MOSFET Drive Circuits and Techniques - 7 Practical Circuits

Using the TLP250 Isolated MOSFET Driver - Explanation and Example Circuits

Simple MW Transmitter Circuit Diagram