Created
March 5, 2016 18:04
-
-
Save OscarAbadFolgueira/e7cf71ff9b27ba636c77 to your computer and use it in GitHub Desktop.
WordPress Snippet: Cambiar el logo del accedo a la administración.
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 | |
/** | |
* This WordPress code snippet change the login logo of your WordPress site. | |
* | |
* Author: Oscar Abad Folgueira | |
* Author URI: http://www.oscarabadfolgueira.com | |
* | |
* You can copy this snippet and paste in your functions.php or you can build your own plugin | |
* | |
* Change the url of the logo image to your needs. | |
*/ | |
function oaf_change_login_logo() { | |
echo '<style type="text/css"> | |
h1 a { background-image:url(/images/logo.jpg) !important; } | |
</style>'; | |
} | |
add_action('login_head', 'oaf_change_login_logo'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment