Created
March 1, 2018 07:13
-
-
Save zakirsajib/65be78f8c0925aea3f785c7c5a34d668 to your computer and use it in GitHub Desktop.
Change the Login Logo
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 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