OK, it works quite easily actually.
You will need to edit the file wp-content/plugins/speakout/includes/emailpetition.php
– before you do, make a copy of it as a backup…just in case.
You need to do the following at lines 108, 137 and 198.
Where the code says <input name="dk-speakout-custom-field" id="dk-speakout-custom-field-' . $petition->id . '" maxlength="400" type="text" placeholder="' . stripslashes( esc_html( $petition->custom_field_label ) ) . '" />
Replace the entire line with <textarea name="dk-speakout-custom-field" id="dk-speakout-custom-field-' . $petition->id . '" maxlength="400" placeholder="' . stripslashes( esc_html( $petition->custom_field_label ) ) . '" /></textarea>
Alternatively, replace the first word input
with the word textarea
, remove type="text"
and add </textarea>
at the end of the line. Same thing, just a different way to do it.
If you need people to enter more text, you might want to also remove maxlength="400"