Last active
May 9, 2020 19:02
-
-
Save Oscar-Abad-Folgueira/dfe8347c788fb595149eeb73e1fcec1b to your computer and use it in GitHub Desktop.
WordPress Snippet: Cambiar el icono del login de 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 | |
/** | |
* @snippet WordPress Snippet: Cambiar el icono del login de administración | |
* @author Oscar Abad Folgueira | |
* @author_url https://www.oscarabadfolgueira.com | |
* @snippet_url https://www.oscarabadfolgueira.com/wordpress-snippet-cambiar-icono-del-login-administracion/ | |
*/ | |
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