Created
December 17, 2014 04:34
-
-
Save webhasan/89e222590a47b6aeddcf to your computer and use it in GitHub Desktop.
Customize Comment Form
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
comment_form( $args ); | |
$args = array( | |
'fields' => apply_filters( | |
'comment_form_default_fields', array( | |
'author' =>'<p class="comment-form-author">' . '<input id="author" placeholder="Your Name (No Keywords)" name="author" type="text" value="' . | |
esc_attr( $commenter['comment_author'] ) . '" size="30"' . $aria_req . ' />'. | |
'<label for="author">' . __( 'Your Name' ) . '</label> ' . | |
( $req ? '<span class="required">*</span>' : '' ) . | |
'</p>' | |
, | |
'email' => '<p class="comment-form-email">' . '<input id="email" placeholder="[email protected]" name="email" type="text" value="' . esc_attr( $commenter['comment_author_email'] ) . | |
'" size="30"' . $aria_req . ' />' . | |
'<label for="email">' . __( 'Your Email' ) . '</label> ' . | |
( $req ? '<span class="required">*</span>' : '' ) | |
. | |
'</p>', | |
'url' => '<p class="comment-form-url">' . | |
'<input id="url" name="url" placeholder="http://your-site-name.com" type="text" value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30" /> ' . | |
'<label for="url">' . __( 'Website', 'domainreference' ) . '</label>' . | |
'</p>' | |
) | |
), | |
'comment_field' => '<p class="comment-form-comment">' . | |
'<label for="comment">' . __( 'Let us know what you have to say:' ) . '</label>' . | |
'<textarea id="comment" name="comment" placeholder="Express your thoughts, idea or write a feedback by clicking here & start an awesome comment" cols="45" rows="8" aria-required="true"></textarea>' . | |
'</p>', | |
'comment_notes_after' => '', | |
'title_reply' => '<div class="crunchify-text"> <h5>Please Post Your Comments & Reviews</h5></div>' | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment