Skip to content

Instantly share code, notes, and snippets.

View barbwiredmedia's full-sized avatar

Barbara Talbot barbwiredmedia

View GitHub Profile
// modifys contact form 7's default select value of --- to Please select...
function my_wpcf7_form_elements($html) {
$text = 'Please select...';
$html = str_replace('<option value="">---</option>', '<option value="">' . $text . '</option>', $html);
return $html;
}
add_filter('wpcf7_form_elements', 'my_wpcf7_form_elements');
// Modify multiple selects - Target each one specifically
function my_wpcf7_form_elements($html) {
@barbwiredmedia
barbwiredmedia / .htaccess
Last active July 6, 2018 18:00 — forked from andornagy/.htaccess
Increase memory limits. / Increase upload size wordpress , ini
php_value memory_limit 64M
php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value max_execution_time 300
php_value max_input_time 300
@barbwiredmedia
barbwiredmedia / Contact Form 7: validation.css
Last active June 6, 2020 17:15 — forked from landru247/Contact Form 7: validation.css
Contact form 7 error styles, validation, cf7 validate
div.wpcf7-response-output, div.wpcf7-validation-errors { display: none !important; }
span.wpcf7-not-valid-tip { display: none; }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: red; background-color: rgba(153,0,0,0.3) !important; }
span.wpcf7-form-control-wrap {display:block !important;}/*keeps forms from jumping on render*/