1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Is there an easy way to remove email box from comments in WP?

Discussion in 'Content Management' started by Lpe04, Apr 23, 2009.

  1. #1
    Does anyone know of an easy way to remove the email box from comments in Wordpress? I would also like to add a captcha, since this might increase the likelihood of spam, but that is another topic ;)

    Thanks!
     
    Lpe04, Apr 23, 2009 IP
  2. staffsergeantpeterson

    staffsergeantpeterson Member

    Messages:
    356
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    33
    #2
    Try usind the askimet plugin for the spam... TO remove teh email box you have to edit the comments.php page from the admin panel or you can edit it with your FTP client.
     
    staffsergeantpeterson, Apr 23, 2009 IP
  3. Cash Nebula

    Cash Nebula Peon

    Messages:
    1,197
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #3
    For the default Wordpress theme, it's this code in comments.php

    
    <p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> />
    <label for="email"><small>Mail (will not be published) <?php if ($req) echo "(required)"; ?></small></label></p>
    
    Code (markup):
    It may be a bit different in your theme but you should be able to spot it.
    Removing it will get rid of the email field, provided you don't have popup comments activated.
     
    Cash Nebula, Apr 25, 2009 IP
    Lpe04 likes this.
  4. Lpe04

    Lpe04 Peon

    Messages:
    579
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #4
    cool, thanks guys. I found a setting in the Admin panel (under Disscusion) so that emails were no longer required so it is no biggie now. Thanks!
     
    Lpe04, Apr 27, 2009 IP