Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Satori83/c55a58724f187ddd0c4c621685a06013 to your computer and use it in GitHub Desktop.
Save Satori83/c55a58724f187ddd0c4c621685a06013 to your computer and use it in GitHub Desktop.
<?php
// filter the Gravity Forms button type
add_filter("gform_submit_button_1", "form_submit_button", 10, 2);
function form_submit_button($button, $form){
return "<button class='button' id='gform_submit_button_{$form["id"]}'><span><i class='fa fa-share fa-2x'></i> Send </span></button>";
}
//Change hook of gform_submit_button_X to the form that you are using
//Change <span><i class='fa fa-share fa-2x'></i> Send </span> to Font awesome and text of your choice
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment