Site logo

[Resolved] How control and remove the Leave a Comment on post?

Home Forums Support [Resolved] How control and remove the Leave a Comment on post?

Home Forums Support How control and remove the Leave a Comment on post?

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1528461
    Kay

    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.

    https://www.realtycontents.com/mortgage-payment/

    #1528519
    David
    Staff
    Customer Support

    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 '';

    #1528527
    Kay

    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.

    #1528656
    David
    Staff
    Customer Support

    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 '';
    }
    #1529011
    Kay

    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.

    #1529072
    Leo
    Staff
    Customer Support

    I don’t see Leave a comment in the link above.

    Have you figured this out?

    #1529076
    Kay

    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

    #1529090
    Leo
    Staff
    Customer Support
    #1529108
    Kay

    Thank you Leo, it was help I removed, thank you again.

    #1529148
    Leo
    Staff
    Customer Support

    No problem 🙂

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