Add a new style to your WordPress Comment Form

Apply additional Style in WordPress Comment Form

In this trick, You get many name of classes where you can add additional style/CSS to override default styling of Comment form. WordPress allows you to add CSS to get new look of Comment section in posts/pages. The WordPress comment form is generated using the function <?php comment_form(); ?>.

By default this function generates your comment form with three text fields (Name, Email, and Website), a textarea field for the comment text, and the submit button. You can easily modify each of these fields by simply tweaking the the default CSS classes. Below is a list of the default CSS classes that WordPress adds to each comment form.

By simply tweaking these CSS classes, you can completely change the look and feel of your WordPress comment form.

 

Leave a Reply

Your email address will not be published. Required fields are marked *