Skip to content

Monthly Archives: September 2009

Readonly Option for Contact Form 7 WP Plugin

06-Sep-09

Contact Form 7 is great. As it says: "simple". This is to add up readonly option to that simplicity. E.g. for text inputs: /wp-content/plugins/contact-form-7/modules/text.php Code reads: $atts = ''; $id_att = ''; $class_att = ''; $size_att = ''; $maxlength_att = ''; if ( 'email' == $type || 'email*' == $type ) $class_att .= ' wpcf7-validates-as-email'; […]