You can comment out this single line if you want:
[php]
add_filter( 'gform_submit_button', 'form_submit_button', 10, 2 );
to make it look like this:
[php]
// add_filter( 'gform_submit_button', 'form_submit_button', 10, 2 );
And that will stop the function from being called. The function will still be present. Richard showed you a way to comment out all 6 lines.
A theme update will wipe out your changes. You should always use a Child Theme in that case, so your customizations are never overwritten. If you don't want to use a child theme, you will have to maintain your changes after upgrading the theme,
You might also contact the theme author for their support, since they are providing functionality you do not want, and not making it easy to remove. Changing the submit button text is easy enough in the form builder: I'm not sure why the do it with a function in an included PHP file.
Posted 11 years ago on Tuesday April 2, 2013 |
Permalink