How I can remove comment count from my blog posts. I am using Creativo theme.
I have tired
.comments-count {display: none;}'''
but it didn’t work
How I can remove comment count from my blog posts. I am using Creativo theme.
I have tired
.comments-count {display: none;}'''
but it didn’t work
3
Answers
This is pretty vague/would need to see the HTML, but one thing that might work (assuming you’re actually applying the class "comments-count" to the blog posts), would be to add an !important; modifier.
also, personally I sometimes have had issues with the "none" modifier — you could try:
instead.
There’s another CSS instruction from the theme itself with higher priority than yours. So to move up in the CSS hierarchy, be more specific with your instruction.
This works:
You should use the Chrome or Firefox developer tools to inspect the element and see why your CSS is not applied. Most times you will see a higher CSS rule that takes precedence and you can fix accordingly.
Your theme has different classes for the comments count. You can apply the following CSS to remove comments count from single post.
To remove the border from the li after removing comment count, use this CSS.