Hi there,
I'm using a custom Wordpress theme that tags each of the posts on my homepage with the WP categories that they belong to.
Because some posts can belong to multiple categories, it's making the home page look pretty messy, so I want to try and 'remove' the category tags by using: display: none;
Looking at the HTML code, I can see that the category tags seem to belong to a "post-category" class:
HTML Code:
<div class="post-category"><a href="https://mydomain.com/category/review/">Reviews</a>
Therefore, I've added the following custom CSS to try and stop them from showing:
Code:
#post-category {
display: none;
}
It's not working though, and I was hoping someone here might be able to tell me why. Is it ok to target the class directly like that? Or do I need to reference all of its parents classes too?
Thanks very much in advance!