Skip to content

Instantly share code, notes, and snippets.

@celticwebdesign
Last active June 1, 2016 23:15
Show Gist options
  • Save celticwebdesign/f72e7ccf4b28ff3b16f7 to your computer and use it in GitHub Desktop.
Save celticwebdesign/f72e7ccf4b28ff3b16f7 to your computer and use it in GitHub Desktop.
Gravity Forms spinner
body img.gform_ajax_spinner {
/*display: none!important;*/
display: block;
margin: 10px 0 0 10px;
position: relative;
top:10px;
left:10px;
max-width: 16px;
}
// https://thomasgriffin.io/change-default-gravity-forms-ajax-spinner/
add_filter( 'gform_ajax_spinner_url', 'tgm_io_custom_gforms_spinner' );
/**
* Changes the default Gravity Forms AJAX spinner.
*
* @since 1.0.0
*
* @param string $src The default spinner URL.
* @return string $src The new spinner URL.
*/
function tgm_io_custom_gforms_spinner( $src ) {
return get_stylesheet_directory_uri() . '/img/ajax-loader.gif';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment