Archived topic
How control and remove the Leave a Comment on post?
9 replies · Started by Kay on November 12, 2020
Hi,
I am wondering how can I control and remove the LEAVE A COMMENT on the post as below link;
I can not find where is, so please help me. Thank you.
Hi there,
if you want to change the Leave a Comment text you can use the PHP Snippet provided here:
https://docs.generatepress.com/article/generate_leave_comment/
You can remove it by simply changing the return value to nothing like so:
return '';
Hi David,
Thank you for your quick response, but I just begin to learn CSS so please give me more explanation as to where I can put "return '';" on CSS, you mean.. just remove 'Join the conversation' ?
Please let me know about that. Thank you.
The Code is PHP, this article explains how to add it:
https://docs.generatepress.com/article/adding-php/
And yes your PHP code will look like this:
add_filter( 'generate_leave_comment','tu_custom_leave_comment' );
function tu_custom_leave_comment() {
return '';
}
Hi,
I did what you mentioned me, but still same as below link;
https://www.realtycontents.com/condo-insurance-fee/
Also Can I do in another way because I don't like too much plugin. Thank you.
I don't see Leave a comment in the link above.
Have you figured this out?
Hi,
I see to removed Leave a comment, but I meant to remove from LEAVE A COMMENT to POST COMMENT included a big box, email, name, website...etc.
Please check tha link as below;
https://www.realtycontents.com/new-listing/
I hope you got what I saying, please let me know if you don't clear what I mean.
Thank you.
Kay
This should help:
https://docs.generatepress.com/article/removing-comments/
Thank you Leo, it was help I removed, thank you again.
No problem :)