Skip to content

Instantly share code, notes, and snippets.

@m1ndspark
Created July 24, 2018 17:29
Show Gist options
  • Save m1ndspark/8f089885f52a3e8048d12d6cff14357e to your computer and use it in GitHub Desktop.
Save m1ndspark/8f089885f52a3e8048d12d6cff14357e to your computer and use it in GitHub Desktop.
Adding Font Icons to Gravity Forms Submit Button - by David Waumsley
// ADDS A SPAN TAG AFTER THE GRAVITY FORMS BUTTON
// aria-hidden is added for accessibility (hides the icon from screen readers)
add_filter( 'gform_submit_button', 'dw_add_span_tags', 10, 2 );
function dw_add_span_tags ( $button, $form ) {
return $button .= "<span aria-hidden='true'></span>";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment