M
M
mipfikus2020-05-19 19:30:57
css
mipfikus, 2020-05-19 19:30:57

How to remove and replace form validation errors in cf7?

It is necessary to remove the pop-up fields "the field is required" and "The form contains errors."
You just need to remove the yellow and red fields, and instead highlight the problematic field (phone number) with red.
5ec409716e6f8692586462.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
1
143477, 2020-05-19
@mipfikus

for example via css
like this

.wpcf7-not-valid-tip,
.wpcf7-validation-errors, 
.wpcf7-acceptance-missing {
  display: none !important;
}
.wpcf7-not-valid {
  border:  2px solid red !important;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question