Last active
July 8, 2022 06:15
-
-
Save texe/dae0251d9b453951c8edc19d1df39976 to your computer and use it in GitHub Desktop.
WordPress - Change logo on WordPress' login page
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
| // Change logo on login page | |
| function my_custom_login_logo() { | |
| echo '<style type="text/css"> | |
| h1 a { background-image:url(https://your-domain.com/wp-content/uploads/custom-logo.png) !important; } | |
| </style>'; | |
| } | |
| add_action('login_head', 'my_custom_login_logo'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment