Support » Plugin: Contact Form 7 Phone Module » Missing class on input element causing style related issues

  • Resolved Brianna Deleasa


    When working with a contact form and testing the error messages, I noticed the phone field border color was not changing like all of the other fields with errors. The wpcf7-not-valid class was not being added to the input element like all other empty fields, though the default CF7 error message was showing over the field.

    Upon inspecting, I found that the issue was because on the input element generated by the [phone] shortcode, the class wpcf7-form-control was not present. Changing line 131 of phone.php to the following resolves this issue:

    $class_att .= 'wpcf7-form-control wpcf7-text wpcf7-pm-phone';

    I just wanted to let you know! Otherwise, great plugin!

Viewing 1 replies (of 1 total)
  • Plugin Author Gabriel Reguly


    Thanks for the kind words.

    Also, thanks for the report, I shall add the fix to next version.


Viewing 1 replies (of 1 total)
  • The topic ‘Missing class on input element causing style related issues’ is closed to new replies.