Skip to content

Instantly share code, notes, and snippets.

@ellenbo
Created July 16, 2015 15:27
Show Gist options
  • Save ellenbo/aa96c827bb81b5d9ae85 to your computer and use it in GitHub Desktop.
Save ellenbo/aa96c827bb81b5d9ae85 to your computer and use it in GitHub Desktop.
Change Gravity Forms input button
<?php
//put this in functions.php (do not copy the opening and closing php tags)
// filter the Gravity Forms button type
add_filter( 'gform_submit_button', 'form_submit_button', 10, 2 );
function form_submit_button( $button, $form ) {
return "<button class='button' id='gform_submit_button_{$form['id']}'><span>Submit</span></button>";
}
?>
https://www.gravityhelp.com/documentation/article/gform_submit_button/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment