WordPress.org

Forums

Removing the 'mail (will not be published') box (4 posts)

  1. samb0005
    Member
    Posted 5 years ago #

    Hi

    Am new to all this but was wondering if it would be possible to remove the 'mail (will not be published)' box when someone is leaving a comment on your blog? In the settings, discussion tab i've unticked the box that requires the email address of the comment's author but the box still comes up (although you dont have to fill it in!). Is there any way round this at all? any help would be appreciated!!

    Thanks
    Sam

  2. Rev. Voodoo
    Volunteer Moderator
    Posted 5 years ago #

    in comments.php you could delete/comment out this

    <p><input type="text" name="email" id="email" value="<?php echo esc_attr($comment_author_email); ?>" size="22" tabindex="2" />
    <label for="email"><small>Mail (will not be published) <?php if ($req) echo "(required)"; ?></small></label></p>

    or similar

  3. samb0005
    Member
    Posted 5 years ago #

    Thats great, thanks!

  4. samb0005
    Member
    Posted 5 years ago #

    Just removed that information, but now when i try and leave a comment an error message comes up "Error: please fill in the required fields (name, email).

    Is there anywhere else that I need to edit this? Again any help would be appreciated!! Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic