comment_formについて
-
<?php comment_form(); ?>を使ってformのデザインを変えたいのですが、$fieldsがうまく変わりません。
$comments_argsの部分は変えられるのですが。
<?php $comments_args = array( // change the title of send button 'title_reply'=>'<h4>コメントをどうぞ</h4>' ); comment_form($comments_args); ?>
$fieldsの部分が変更できません。
<?php $fields = array( 'author' => '<p id="inputtext">' . '<label for="author">' . __( 'Name' ) . ( $req ? '(必須)' : '' ) . '</label> ' . '<br /><input id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30"' . $aria_req . ' /></p>', ); $comments_args = array( // change the title of send button 'title_reply'=>'<h4>コメントをどうぞ</h4>' ); comment_form($comments_args); ?>
わかるかたいましたら、
お手数をおかけしますが、ご教示よろしくお願いいたします。参考URL
http://codex.wordpress.org/Function_Reference/comment_form
1件の返信を表示中 - 1 - 1件目 (全1件中)
1件の返信を表示中 - 1 - 1件目 (全1件中)
- トピック「comment_formについて」には新たに返信することはできません。