php - My comment fields don't show Placeholder text -
i have wordpress website in comment fields don't show place holder text. has 4 fields. 1 each name, email address, website , comment. first 3 fields have no place holder text due dificult identify field thing. here piece of code found in comments.php file , believe causing problem.
any helps fix problem?
$fields = array( 'author' => '<div class="comment-left pull-left"> <p class="input-block"> <label for="comment_name" class="required">'.__('name', kopa_get_domain()).' <span>*</span></label> <input type="text" id="comment_name" name="author" class="valid"> </p>', 'email' => '<p class="input-block"> <label for="comment_email" class="required">'.__('email', kopa_get_domain()).'<span>*</span></label> <input type="text" id="comment_email" name="email" class="valid"> </p>', 'url' => '<p class="input-block"> <label for="comment_url" class="required">'.__('website', kopa_get_domain()).':</label> <input type="text" name="url" class="valid" id="comment_url"> </p> </div>', );
comment fields don't have placeholders default.
using code posted in question easy add them in:
<input type="text" id="comment_name" name="author" placeholder=" . __( 'name', kopa_get_domain() ) . '" class="valid"> ... <input type="text" id="comment_email" name="email" placeholder="' . __( 'email', kopa_get_domain() ) . '" class="valid"> ... <input type="text" name="url" class="valid" placeholder="' . __( 'website', kopa_get_domain() ) . '" id="comment_url">
your email input should have type of email too.
Comments
Post a Comment