I’m using the default twenty_ten theme that comes with the latest WordPress and modifying it. I just want to add a class to certain text inputs within the new comment form (specifically to add
class="text"
to make it play nice with Blueprint CSS framework).
I can’t locate the place to do this. Not au fait with PHP but able to work my way around it in most cases – just can’t seem to locate the form here.
Any help appreciated.
The comment form is output by the WordPress comment_form() function. To add a CSS class to specific inputs, you can change the
$fields
argument when it’s called from the bottom of the TwentyTen comments.php file.In the example below I’ve added
class="text"
to the author input field:Alternatively you could create a filter in your theme’s functions.php that added the input class for you:
Login in to you Control Panel.
Open wp-includes folder from File Manager.
Select comment-template.php and Click Edit.
Go to the line 1541 or search for ââ Near to this you can see âYour email address will not be published. Required fields are marked *â
Read more at aTechguide.com http://atechguide.com/edit-comment-form-wordpress