WordPress.org

Ready to get started?Download WordPress

Forums

How Do I Allow Comments Without Requiring E-mail Address? (4 posts)

  1. catceefer
    Member
    Posted 11 months ago #

    I have a comments page on my site and do not want people to have to add their e-mail address or website to post a comment. I have deselected all options under Settings - Discussions except for "Allow people to post comments on new articles", yet it still requests a website and e-mail address. Also, I need to approve all comments before they appear even though I have deselected this setting.

    I am using the Parabola theme and the Anti-Captcha plugin. Is it possible that these are overriding my settings or am I doing something wrong. I did try deactivating Anti-Captcha, but it seemed to make no difference.

    The page address is: http://www.craftedcopper.co.uk/wordpress/comments-and-wish-list/

    Thank you.

    James.

  2. janmejai
    Member
    Posted 11 months ago #

    So,what's the problem?
    Just posted a comment without adding the email address & website and it is published.

    Do you mean that you wish to remove the email and website field from the comment section?

  3. Dave Naylor
    Member
    Posted 11 months ago #

    @catceefer

    Your theme advises against editing its functions.php file. So install a functionality plugin like this one:

    https://wordpress.org/plugins/functionality/

    Once installed, enter this function:

    function remove_comment_fields($fields) {
        unset($fields['email']);
        unset($fields['url']);
        return $fields;
    }
    add_filter('comment_form_default_fields', 'remove_comment_fields');

    Tested and working on Parabola.

  4. catceefer
    Member
    Posted 11 months ago #

    Janmejai,

    I see your comment: I am puzzled as when I tried myself, I needed to approve the comments. However, yes: I did really mean how to remove the fields altogether.

    WPRanger,

    Thank you for the suggestion. I have now added this and it has worked.

    Regards,

    James.

Reply

You must log in to post.

About this Topic