• Resolved mgcgfo

    (@mgcgfo)


    Hello,

    None of the error messages are showing in my CF7.

    It only shows “One or more fields have an error. Please check and try again.”

    But which field is it? I want it to tell which field has an error. I also want something like a red hover or a red text near the box. How can I do this, I’ve tried everything.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter mgcgfo

    (@mgcgfo)

    I’ve found the problem,

    	add_filter('wpcf7_form_elements', function($content) {
        $content = preg_replace('/<(span).*?class="\s*(?:.*\s)?wpcf7-form-control-wrap(?:\s[^"]+)?\s*"[^\>]*>(.*)<\/\1>/i', '\2', $content);
    
        return $content;
    });

    This code in the functions.php breaks the ‘This field is required’ text. Unfortunately, when I delete this, my themes form style breaks

Viewing 1 replies (of 1 total)
  • The topic ‘Error Messages Not Showing on CF7’ is closed to new replies.