• the URL for my site is http://www.dislikeyourstatus.com

    i want to remove the ‘required’ text when people click to comment on a post. it says name and email are required (when they actually aren’t) but i can’t figure out how to remove the text. please help. thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • make a backup copy of the theme files before editing

    look into comments.php of your theme:

    and try to find something vaguely similar to (focus on the word ‘required’ for instance) and edit/remove the word:

    <p><input type="text" name="author" id="author" value="<?php echo esc_attr($comment_author); ?>" size="22" tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> />
    <label for="author"><small>Name <?php if ($req) echo "(required)"; ?></small></label></p>
    
    <p><input type="text" name="email" id="email" value="<?php echo esc_attr($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>
    Thread Starter Jake Repko

    (@costarep22)

    thanks that was very helpful. i had to edit the AJAX comments plugin because i’m using that, but it worked out in the end.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘white-gold theme.. modifying comment template’ is closed to new replies.