Support » Fixing WordPress » Removing the ‘mail (will not be published’) box

  • 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

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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

    Thats great, thanks!

    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Removing the ‘mail (will not be published’) box’ is closed to new replies.