[Plugin: Grunion Contact Form] Feature Request – Submit Button Text
-
I’m using the jetpack version and I was forced to implement this on my copy (bad I know but what can you do?)
Anyways, here is my suggestion:
I need different submit button text for different forms, so the following changes add a new argument to the [contact-form] shortcode:
[contact-form] would have the submit button do the default thing.
[contact-form submit='Send Bug Report'] => Use alternative submit button text.– – –
To make this change, it is really pretty easy. Just make the following 4 minor changes:
At around line 220, beneath:
$default_to = get_option( 'admin_email' ); $default_subject = "[" . get_option( 'blogname' ) . "]";
Add the following line:
$default_submit = __( "Submit ?", 'jetpack' );
– – –
At around line 233, beneath:
'subject' => $default_subject, 'show_subject' => 'no', // only used in back-compat mode
Add the following line:
'submit' => $default_submit, // alternate submit button text
– – –
At around line 248, beneath:
$grunion_form->subject = $subject; $grunion_form->show_subject = $show_subject;
Add the following line:
$grunion_form->submit_text = $submit;
– – –
Finally, change the following line:
$r .= "\t\t<input type='submit' value='" . __( "Submit ?", 'jetpack' ) . "' class='pushbutton-wide'/>\n";
To:
$r .= "\t\t<input type='submit' value='" . $grunion_form->submit_text . "' class='pushbutton-wide'/>\n";
https://www.ads-software.com/extend/plugins/grunion-contact-form/
- The topic ‘[Plugin: Grunion Contact Form] Feature Request – Submit Button Text’ is closed to new replies.