Hi!
Using TD Composer I want to create a page with “our authors”. For this, I use the “Authors box” element. BUT there are two variables under each author’s name: XX posts and XX comments. Unfortunately we don’t use comments at all on our site so everyone has a sad 0’s next to the article count. Can it be removed?
The second question is also for comments, but in the backend. In the list of all posts, there is a column that shows the number of comments on the posts. We don’t have any comments, so there is a blank column next to each article with only “-“. Is there any way to turn it off? Same as with the number of views, like you helped me here?
https://forum.tagdiv.com/topic/hiding-the-number-of-post-views-on-the-backend/
If so, tell me what to comment in the code of the page.
Please help and thank you!
https://prnt.sc/1lqf9he
Hi,
Link is literally on the screen 😀 It’s https://mgaesports.com/
Anyway its useless in this case, cuz this sub-page is not public. And I’m askin about “Authors box” object in your TD Composer in general, not only in this one particular scenario.
Hello!
That can only be done with CSS. Please try this code and let me know if it worked: .td_top_authors .td-author-comments-count {
display:none;
}
The codes must be inserted in here: https://www.screencast.com/t/G4qVwC6G
Thank you !
Hi,
thank you very much, your solution is working!
I have an additional question regarding this matter. Is there a similar solution to get rid of this parameter in authors’ profiles? For example here:
https://mgaesports.com/author/troczynskan/
Also can you help me with the second part of my original question? I mean this part:
“The second question is also for comments, but in the backend. In the list of all posts, there is a column that shows the number of comments on the posts. We don’t have any comments, so there is a blank column next” to each article with only “-“. Is there any way to turn it off? Same as with the number of views, like you helped me here?
https://forum.tagdiv.com/topic/hiding-the-number-of-post-views-on-the-backend/”
Hello,
To hide you can try to see if you can delete it with tagDiv Composer, if not then use this code
.td-author-comments-count {
display:none;
}
Also, for comments count, you need to use a custom code add_action('admin_head',function() { echo '
'; });
add this code in wp-content/plugins/td-composer/legacy/Newspaper/functions.php
Thank you!
Hi, the mentioned solution is unfortunately not working. The column still appears in the backend. Can you help me with a screenshot where exactly this code should I put? Does this solution work at 100%?
Below I am sending the screen which column we are talking about exactly.
https://prnt.sc/1xh7uxg
Hello,
Seems the code wasn’t sent correctly please check this on the link https://pastebin.com/YpGQR1n6
Thank you!