Skip to content

Instantly share code, notes, and snippets.

View ldugaduga's full-sized avatar
🏠
Working from home

Louie ldugaduga

🏠
Working from home
View GitHub Profile
@michaelcarwile
michaelcarwile / functions.php
Created August 15, 2014 12:06
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'] . '">';
}