Hi!
Maybe this can help (it worked for me):
The original classes can be found in the plugin’s stylesheet, which sits in the contact-form-7 plugin folder > includes > css > styles.css . Of course it’s best to copy the ones you need into your child theme’s stylesheet and change the values.
My example (in which I changed the border- and background-colors):
div.wpcf7-mail-sent-ok { border: 2px solid #87cefa !important;background-color:lightskyblue; }
div.wpcf7-mail-sent-ng { border: 2px solid #87cefa !important;background-color:lightskyblue; }
div.wpcf7-spam-blocked { background-color:#ffa500; }
div.wpcf7-validation-errors { border:0;background-color:#f7e700; }
The !important statement seems necessary to make it effective.
Thread Starter
PDIMG
(@stefanristicdev)
Thank you for your answer bxwebber!
Your tip about checking CF7 styles.css helped me to find the correct class. It should be:
span.wpcf7-not-valid-tip
Issue solved, thank you!