skip to Main Content

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


  1. 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.

    .comments-count{display: none !important;}
    

    also, personally I sometimes have had issues with the "none" modifier — you could try:

    .comments-count{display: hidden !important;}
    

    instead.

    Login or Signup to reply.
  2. 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:

    .post_meta li.comments_count {
        display: none;
    }
    

    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.

    Login or Signup to reply.
  3. Your theme has different classes for the comments count. You can apply the following CSS to remove comments count from single post.

    .single-post .post_meta .comments_count {
      display: none;
    }
    

    To remove the border from the li after removing comment count, use this CSS.

    .single-post .post_meta li:nth-child(2) {
        border-right: none;
    }
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search