• Hi,
    I’d love to see a possibility to turn off the wrapping spans.

    Something like this would be great:
    (eg. modules/text.php in ll. 75-86)

    $html = wpcf7_html_wrapper( $tag->name, $atts, $validation_error );
    
    	return $html;
    }
    
    function wpcf7_html_wrapper($name, $atts, $validation_error) {
    	if('WPCF7_WRAP_HTML'){
    		return sprintf( '<span class="wpcf7-form-control-wrap %1$s"><input %2$s />%3$s</span>', sanitize_html_class( $name ), $atts, $validation_error );
    	} else {
    		return sprintf( '<input %1$s />%2$s', $atts, $validation_error );
    	}
    }

    https://wordpress.org/plugins/contact-form-7/

Viewing 1 replies (of 1 total)
  • Interested to hear why you feel this would be a useful option.

    I am co-author of the Contact Form 7 Extras plugin which provides a simple user interface for some commonly requested extra functionality for Contact Form 7.

    Might be worth adding your suggestion there.

Viewing 1 replies (of 1 total)

The topic ‘Update Suggestion’ is closed to new replies.