Skip to content

Instantly share code, notes, and snippets.

@benfavre
Created December 28, 2012 15:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save benfavre/4398753 to your computer and use it in GitHub Desktop.
Save benfavre/4398753 to your computer and use it in GitHub Desktop.
Add Bootstrap "btn" class to the submit input of gravity forms
// filter the Gravity Forms button type
add_filter("gform_submit_button", "form_submit_button", 10, 2);
function form_submit_button($button, $form){
return "<input type='submit' class='button gform_button btn btn-flat' id='gform_submit_button_{$form["id"]}' />";
}
@benfavre
Copy link
Author

Add this to functions.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment