Remove comment count on author page

Posted in: Newspaper
Post count: 201

Hi,

Comments are disabled on my WordPress site, yet each author page still shows the number of posts and number of comments (0) at the top.

How can I go about removing the post and comment count on this page?

Post count: 27744

That can only be done with CSS. Please try this code and let me know if it worked:
.td-author-comments-count {
display:none;
}

Please set the code in Theme Panel -> Custom Code -> Custom CSS.

Thank you!

Post count: 201

Hi, thank you – that helped.

The number of comments no longer. However, the number of posts still do and that part of the page looks untidy:

https://imgur.com/a/0DMr8Lv

How can I remove that entire section; post count and comment count?

  • This reply was modified 4 years by c386.
Post count: 21065

Hello!

Delete the previous CSS code and set this one:


.td-author-counters{display:none;}

Let me know the results!

Thank you!

Post count: 201

Hi Bettina,

Thank you for the update. The revised CSS code is almost perfect, it correctly removes the post and comment count, however the box in which those stats would be displayed is still visible.

How can we remove the empty box: https://imgur.com/3B9HpnM

Thank you.

Post count: 21065

Hello!

Replace the previous CSS code and set this one:


.author-box-wrap{display:none;}

Let me know the results!

Thank you!

Post count: 201

That worked perfectly. Thank you! 🙂

Post count: 21065

Hello @c386!

I’m glad that I could help you.
Let me know if you need further assistance.

Have a nice day!

Post count: 201

Hi again Bettina,

Following on from the above, I’ve now noticed that the fix is working perfectly on desktop, but not mobile, where the post and comment count is still visible.

How can we go about changing this on the mobile site too?

Post count: 21065

Hello @c386!

Please let me know the website link, so I can know which mobile version do you use and what you need to hide from there.

Thank you!

Post count: 201

Hi Bettina, here is the link.

Post count: 21065

Hello @c386!

Apply this code in the theme panel -> mobile theme -> custom code -> custom css.

.author-box-wrap {display: none;}

Thank you!

Post count: 201

Thank you, Bettina. That’s done the trick.

Viewing 13 posts - 1 through 13 (of 13 total)
You must be logged in to reply to this topic.