0

Contact Form 7 Select Box Blank Value with custom option text

Use the following code in your function.php to change the “include_blank” with custom option text [code langauage=”php”] 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’);… Continue Reading