Skip to content

Instantly share code, notes, and snippets.

@zakirsajib
Created March 1, 2018 07:13
Show Gist options
  • Select an option

  • Save zakirsajib/65be78f8c0925aea3f785c7c5a34d668 to your computer and use it in GitHub Desktop.

Select an option

Save zakirsajib/65be78f8c0925aea3f785c7c5a34d668 to your computer and use it in GitHub Desktop.
Change the Login Logo
function my_login_logo() { ?>
<style type="text/css">
#login h1 a, .login h1 a {
background-image: url('https://xxx.com/wp-content/uploads/2017/11/logo-3.png');
width: auto;
height: 76px;
background-size: contain;
background-position: center center;
}
#login h1 a:focus,
.login h1 a:fcous{
box-shadow: none;
}
</style>
<?php }
add_action( 'login_enqueue_scripts', 'my_login_logo' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment