Hallo,
ich habe folgende Codezeile in die functions.php eingebaut um die Textausgabe bei den Kommentaren zu ändern. Klappt auch alles wunderbar, nur leider steht das feld name ein paar px zu hoch (siehe anhang). Woran kann das liegen ?
Code
// Customize Comment Form
function my_fields($fields) {
$fields['author'] = '<p class="comment-form-author"><label for="author">' . __( 'Name*' ) . '</label> ' . ( $req ? '*' : '' ) .
'<br/><input id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30"' . $aria_req . ' /></p>';
$fields['email'] = '<p class="comment-form-email"><label for="email">' . __( 'Email*' ) . '</label> ' . ( $req ? '*' : '' ) .
'<br/><input id="email" name="email" type="text" value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30"' . $aria_req . ' /></p>';
$fields['url'] = '<p class="comment-form-url"><label for="url">' . __( 'Webside' ) . '</label>' .
'<br/><input id="url" name="url" type="text" value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30" /></p>';
return $fields;
}
add_filter('comment_form_default_fields','my_fields');
Alles anzeigen