In this tutorial, i’ll give you the PHP code which enables you to add Place Holder Text within your comment forms input fields.
I’ll also provide some sample CSS code which you can use to modify the styling of both your placeholder text and field names.
This code works with any theme including Genesis which no longer uses the genesis_comment_form filters.
Here’s the default form without any modifications:
And here’s an example of how you can customize your form fields using the comment_form_default_fields filter WordPress provides in the core files.
Here’s the code you can copy from the view raw link and paste at the end of your child themes functions.php file.
Other Options
- Add Remove & Change Order of Comment Form Default Fields
- How To Remove Comment Form Allowed Tags
- Remove Comments From Specific Posts and Different Categories
- Modify Text Before & After Comment Form
- Style Comment Form Submit Button
- Customize Comment Form Text Area & Label



Leave a Reply
You must be logged in to post a comment.