Created
November 4, 2019 03:10
-
-
Save BurlesonBrad/0fc0330b43e3d083f8d10e26a1e39e56 to your computer and use it in GitHub Desktop.
Jason changes the WooCommerce Checkout Custom Ajax Spinner
This file contains 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
add_action('wp_head', 'custom_ajax_spinner', 1000 ); | |
function custom_ajax_spinner() { | |
?> | |
<style> | |
.woocommerce .blockUI.blockOverlay:before, | |
.woocommerce .loader:before { | |
height: 3em; | |
width: 3em; | |
position: absolute; | |
top: 50%; | |
left: 50%; | |
margin-left: -.5em; | |
margin-top: -.5em; | |
display: block; | |
content: ""; | |
-webkit-animation: none; | |
-moz-animation: none; | |
animation: none; | |
background-image:url('<?php echo get_stylesheet_directory_uri() . "/img/my_spinner.gif"; ?>') !important; | |
background-position: center center; | |
background-size: cover; | |
line-height: 1; | |
text-align: center; | |
font-size: 2em; | |
} | |
</style> | |
<?php | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment