Skip to content

Instantly share code, notes, and snippets.

@mattradford
Created June 17, 2016 12:54
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mattradford/330d748bd5b0bb0e9511aaffd1e6680c to your computer and use it in GitHub Desktop.
Save mattradford/330d748bd5b0bb0e9511aaffd1e6680c to your computer and use it in GitHub Desktop.
Filters the Gravity Forms spinner and replaces it with a base64-encoded blank image
function gf_spinner_replace( $image_src, $form ) {
return 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7'; // relative to you theme images folder
}
add_filter( 'gform_ajax_spinner_url', 'gf_spinner_replace', 10, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment