Skip to content

Instantly share code, notes, and snippets.

@wpgaurav
Created September 21, 2022 03:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wpgaurav/563985b908de39c15e49aaee08026dd2 to your computer and use it in GitHub Desktop.
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
<?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