Last week showed you how to add Custom CSS file to your WordPress Blog, and this week thought I would show you how to customize your comments form. Adding some simple code will let you change the header, and the button text. Now your heading and button will say what you want. Something real easy you could do that would just add a little flare to your blog.
In case you are not sure what the comment form is. This is what I am referring to.
Custom Comments Form
To customize your comments form you just simply add the following code to your functions.php. Then change the part in yellow to the text that you want to appear for your heading and button
//***Customize The Comment Form**/
add_filter( 'comment_form_defaults', 'bourncreative_custom_comment_form' );
function bourncreative_custom_comment_form($fields) {
$fields['title_reply'] = __( 'Join the Discussion!', 'customtheme' ); //Changes The Form Headline
$fields['label_submit'] = __( 'Submit Comment' , 'customtheme' ); //Changes The Submit Button Text
$fields['comment_notes_after'] = ''; //Removes Form Allowed Tags Box
return $fields;
}
If you want to change the color of the text you simply add some CSS
#reply-title {
color: rgb(78, 177, 186);
}
Viola! It is that easy!
Now in conjunction with your custom comments form here are a few plugins that help enhance your comments.
If you need any help just let me know in the comments below.
What do you look for when you are looking at the comments section on a blog?
Something you want to see in a future Tuesday Tutorial? Just fill out this form.
Amazing article, as always! Thanks for all the solid gold tips http://lewislanedesigns.com/
Great article as always
https://pahadibahu.blogspot.com/