Created
May 1, 2025 16:00
-
-
Save kasparsd/3134a909ba6cebd7e3ee524124d02ff7 to your computer and use it in GitHub Desktop.
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 | |
add_action( | |
'login_head', | |
function () { | |
$site_icon_url = get_site_icon_url(); | |
if ( ! empty( $site_icon_url ) ) { | |
printf( | |
'<style type="text/css"> | |
.login h1 a { | |
background-image:url("%s"); | |
border-radius:50%%; | |
} | |
</style>', | |
esc_url( $site_icon_url ) | |
); | |
} | |
}, | |
100 | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment