Archived topic
removing "leave a comment" from bottom
14 replies · Started by Halil on March 11, 2018
is it possible to remove "leave a comment" text from bottom of posts in post lists But at the same time number of comments should be shown if there are some in the post?
Hi there,
Try this CSS:
#reply-title {
display: none;
}
Adding CSS: https://docs.generatepress.com/article/adding-css/
it didnt work :(
Are you referring to "Yorum yapın"?
Yes I am.
Then my CSS should work. However I'm seeing the code being added.
Any caching plugins?
well I purged them several times, tried incognito, restarted the web server, it didnt work.
I have some other css codes affecting categories etc below the post, , may be it's related with them?
It's working now? http://www.screencast.com/t/1bkHNnLfI
no it is not !
"leave a comment" is still there (yorum yap in the page in turkish).
Ok you said "yes it is" when I asked if you are trying to hide "Yorum yapın" (the title above the comment box): http://www.screencast.com/t/f1gzOdOBE
and my CSS did remove that: http://www.screencast.com/t/1bkHNnLfI
Looks like now you are wanting to hide the button "Yorum Yap"? How are people going to submit comment without the button?
sorry, misunderstanding.
I dont want to hide button in post pages. That's not I want.
On my main page, there are posts listing, some have comments some have not.
If there are some comments just show the number of comments, if not, dont show "leave a comment" (yorum yap) text.
Just on the home page, not in the post pages, show the number of comments if there are some, dont show text "yorum yap" if there is no comment.
Hmm I'm not sure if there is a way to do that.
Will check with Tom.
I just looked into the internal code here - there's no way to do this with a filter or CSS.
You could overwrite the entire function, but I don't usually recommend that. If it's super important, we can try to do it.
Let me know :)
it's not very important but I believe gp should have more options to customize post properties, tags, comments, to place / hide /customize them in posts, post listing. I am very happy with gp generally, however all my css lines are about changing post settings, nothing else. jusut my 2 cents for the next version.
thanks.
You can hide/show post meta using settings, but I agree we need some more settings for placement.
Thanks!