Skip to content

Instantly share code, notes, and snippets.

@michaelcarwile
Created August 15, 2014 12:06
Show Gist options
  • Save michaelcarwile/127e39fdfb4a1469eecb to your computer and use it in GitHub Desktop.
Save michaelcarwile/127e39fdfb4a1469eecb to your computer and use it in GitHub Desktop.
Gravity Forms Submit Button Add CSS Class
<?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'] . '">';
}
@ldugaduga
Copy link

still works thank you

@dozzaroo
Copy link

dozzaroo commented Feb 4, 2022

Does this work for the 'Save and Continue later' button?

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