Created
August 15, 2014 12:06
-
-
Save michaelcarwile/127e39fdfb4a1469eecb to your computer and use it in GitHub Desktop.
Gravity Forms Submit Button Add CSS Class
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
<?php | |
//* Copy below this line */ | |
add_filter( 'gform_submit_button', 'form_submit_button', 10, 2 ); | |
function form_submit_button($button, $form) { | |
return '<input type="submit" class="button custom-class-here" id="gform_submit_button_' . $form['id'] . '" value="' . $form['button']['text'] . '">'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Does this work for the 'Save and Continue later' button?