Hi,
I would like to style the validation error messages in a Contact Form 7.
I just want to have it in red.
can someone give me the Quick CSS code ?
I try this but no nothing changes.
#wpcf7-not-valid-tip {
color: #red;
Thanks
Hey ppi37,
The correct code is
#wpcf7-not-valid-tip {
color: red;
}
Please do let us know if we can do anything else to help you
Best regards,
Basilis
Hi Basilis,
Thanks,
but no change with your code
Hi,
Please try adding this code to the Quick CSS section under Enfold > General Styling or to your child themes style.css file:
div.wpcf7-validation-errors {
border: 2px solid #f70000!important;
}
Best regards,
Vinay
Hi Vinay,
It’s OK with the following Quick CSS
#wpcf7-not-valid-tip {
color: #e95b0f;
}
div.wpcf7-validation-errors {
border: none;
color: #e95b0f;
}
#top label span {
color: #e95b0f;
}
Thanks a lot
Hi ppi37,
Glad it’s fixed :)
Best regards,
Nikko
Hi again,
Finaly the following CSS is not good.
#top label span {
color: #e95b0f;
}
because it changes labels of the checkbox and the labels of the files too.
But if I remove it, the validation error messages still in the primary color.
And it’s not easy to see which fiel is wrong.
a solution ?
Thanks
Hi,
I don’t understand why the following code doesn’t work with the enfold theme.
span .wpcf7-not-valid {
border: 1px solid #ff0000;
}
following the recomandations here :
Thanks