How to Hide WordPress Subgategories?

Your WordPress post can be organised into categories and subcategories. It’s good for SEO, but long subcategories lists don’t look very good.

In this instruction we describe using CSS code snippets to hide the WordPress subcategories.

Open your style.css file and paste the following code there:

1 .children {
2 display:none;
3 }

Or you can use the WordPress Theme Customizer, to do this go to Appearance > Customize, click the Additional CSS button and paste the code there. Click the Publish button to save the changes.

Was this article helpful?