Viewing 9 replies - 1 through 9 (of 9 total)
  • Leo

    (@leohsiang)

    Hi there,

    This should help: https://docs.generatepress.com/article/removing-comments/

    Let me know ??

    Thread Starter Robin

    (@nioriaa)

    Please read the post carefully again.

    I don’t want to remove the whole comment section. I just want to remove the website submit section. Look under the email section, you can see the website section.

    ying

    (@yingscarlett)

    Thread Starter Robin

    (@nioriaa)

    By following this blog, now anyone can publish comments without email and name. But I don’t want that. Users should fill in their email and name sections. https://prnt.sc/d5lJimhoFmC6

    I just wanted to remove the website box from the comment section but it’s totally changed now. Very disappointed by your support.

    Leo

    (@leohsiang)

    Hi there,

    The linked documentation provides an example of removing both e-mail and website URL. If you only want to remove the website URL then modify the code to this:

    add_action( 'after_setup_theme', 'tu_add_comment_url_filter' );
    function tu_add_comment_url_filter() {
        add_filter( 'comment_form_default_fields', 'tu_disable_comment_url', 20 );
    }
    
    function tu_disable_comment_url($fields) {
        unset($fields['url']);
    
        return $fields;
    }

    Very disappointed by your support.

    The comment system is entirely handled by WP core so your request isn’t actually a theme support question – we are just doing our best to help.

    Also do keep in mind that you’ve opened multiple topics here and we’ve helped with and solved all of them already.

    Your patience is appreciated.

    Thread Starter Robin

    (@nioriaa)

    I added your code but it’s not working as I mentioned.
    I already told you users must fill up their email and name sections (Name* & Email*) in the comment form, just remove the website submit section.

    The website URL submission section is removed but the problem is in the email and name sections. Now people can send comments without names and email addresses. They can keep it empty, but I don’t want that. I want them must fill up the email and name section in the comment form.

    https://prnt.sc/pEWhh_AEe35S

    https://prnt.sc/sidjzRDpFdhO

    Leo

    (@leohsiang)

    See WP documentation here: https://www.ads-software.com/documentation/article/comments-in-wordpress/#comment-rules

    This is what you are looking for:

    Comment author must fill out name and e-mail?prevents people from leaving anonymous comments.

    So make sure that box is checked.

    Thread Starter Robin

    (@nioriaa)

    Thank you, that’s the answer I was looking for.

    Leo

    (@leohsiang)

    No problem ??

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Website submit section off’ is closed to new replies.