Skip to content

Instantly share code, notes, and snippets.

@nickkuijpers
Created February 3, 2015 16:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nickkuijpers/70ab95eff21bde499f85 to your computer and use it in GitHub Desktop.
Save nickkuijpers/70ab95eff21bde499f85 to your computer and use it in GitHub Desktop.
Wordpress Gravityforms Change class of submitbutton
// 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='btn btn-primary' id='gform_submit_button_{$form["id"]}'><span>VERZENDEN</span></button>";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment