Missing class on input element causing style related issues
-
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!
https://www.ads-software.com/plugins/contact-form-7-phone-mask-module/
- The topic ‘Missing class on input element causing style related issues’ is closed to new replies.