Created
July 24, 2018 17:29
-
-
Save m1ndspark/8f089885f52a3e8048d12d6cff14357e to your computer and use it in GitHub Desktop.
Adding Font Icons to Gravity Forms Submit Button - by David Waumsley
This file contains hidden or 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
// 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