Archived topic
"0 comments" instead of the "Leave a comment" text
7 replies · Started by Anas on March 8, 2020
Hi :)
I have two questions..
1. Is it possible to show "0 comments" instead of the "Leave a comment" text (https://imgur.com/KBscvz9)?
It should always show the post' comments count: In case the post has no comments yet, it should show "0 comments". Otherwise, it should show "X comments".
2. Is there a way to remove the "dialog logo" next to the comments count? https://imgur.com/4K9cDYs
Hi there,
1. Try this PHP:
https://docs.generatepress.com/article/generate_leave_comment/
Adding PHP: https://docs.generatepress.com/article/adding-php/
2. Try this CSS:
.comments-link:before {
content: none;
}
Adding CSS: https://docs.generatepress.com/article/adding-css/
Hey Leo,
Regarding your first answer, I tried the generate_leave_comment filter using the snippets plugin but it's not working. The two filters Tom suggested the other day work pretty good but not generate_leave_comment. I can't change the default Leave a Comment text.
Hi there,
looks like you're using a separate plugin for the Comments which the GP Filter does not apply to.
Should I use a new comments plugin? What are the plugins that the GP filter apply to?
The GP Filter only works with the default WordPress Comments form.
This blog has GP as well but I can't find the default Leave a Comment text, although he's using Disqus comments plugin.
Maybe there's an option in Disqus to get rid of the "Leave a comment" text?
That's something you'd need to check with Disqus's support unfortunately.