Created
September 21, 2022 03:21
-
-
Save wpgaurav/563985b908de39c15e49aaee08026dd2 to your computer and use it in GitHub Desktop.
Replace the default WordPress Login Logo with your site’s custom header image
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
<?php | |
function namespace_login_style(){ | |
if( function_exists('get_custom_header')){ | |
$width = get_custom_header()->width; | |
$height = get_custom_header()->height; | |
} else { | |
$width = HEADER_IMAGE_WIDTH; | |
$height = HEADER_IMAGE_HEIGHT;} | |
echo ''.PHP_EOL;} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment