Last active
June 1, 2016 23:15
-
-
Save celticwebdesign/f72e7ccf4b28ff3b16f7 to your computer and use it in GitHub Desktop.
Gravity Forms spinner
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
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