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
.gform_ajax_spinner { | |
margin-left: 20px; /* give it some space from the Submit button */ | |
border: 4px solid rgba(255, 255, 255, 0.3); /* match with border-left */ | |
border-left: 4px solid gold; | |
animation: spinner 1.1s infinite linear; | |
border-radius: 50%; | |
width: 30px; /* match with height for a circle */ | |
height: 30px; | |
} | |
@keyframes 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
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 ); |
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
<?php | |
/** | |
* Template Name: Login Page AA | |
* | |
* Login Page Template. | |
* | |
* @author Ahmad Awais | |
* @since 1.0.0 | |
*/ |
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
add_filter( 'wp_generate_attachment_metadata', 'delete_fullsize_image' ); | |
function delete_fullsize_image( $metadata ) | |
{ | |
$upload_dir = wp_upload_dir(); | |
$full_image_path = trailingslashit( $upload_dir['basedir'] ) . $metadata['file']; | |
$deleted = unlink( $full_image_path ); | |
return $metadata; | |
} |