Created
December 28, 2012 15:15
-
-
Save benfavre/4398753 to your computer and use it in GitHub Desktop.
Add Bootstrap "btn" class to the submit input of gravity forms
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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"]}' />"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this to functions.php