Support » Fixing WordPress » Email Error Message when leaving comment

  • Resolved samb0005

    (@samb0005)


    Hi
    When someone leaves a comment on the blog, I wanted to remove the required email address, so in the comments.php I deleleted

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

    So now it doesnt show the email address box but if you try to leave a comment the following error message comes up:Error: please fill in the required fields (name, email).”

    Does anyone know how I fix this? Any help would be appreciated!!
    Thanks
    Sam

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Email Error Message when leaving comment’ is closed to new replies.