Last active
February 14, 2018 20:08
-
-
Save evemilano/c573516dca05f1d1cf875d5db382d39d to your computer and use it in GitHub Desktop.
Come cambiare il logo nella pagina login di WordPress
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
//* Personalizzare l'immagine nella pagina di login | |
function custom_loginlogo() { | |
echo '<style type="text/css"> | |
h1 a {background-image: url(https://www.evemilano.com/wp-content/uploads/2013/04/logo-evemilano-std1000.png) !important; } | |
</style>'; | |
} | |
add_action('login_head', 'custom_loginlogo'); | |
//* Personalizzare il link dell'immagine nella pagina di login | |
function custom_loginlogo_url($url) { | |
return 'https://www.evemilano.com/'; | |
} | |
add_filter( 'login_headerurl', 'custom_loginlogo_url' ); | |
//* Personalizzare title tag image | |
function custom_login_title() { | |
return get_option( 'blogname' ); | |
} | |
add_filter( 'login_headertitle', 'custom_login_title' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Full article: https://www.evemilano.com/2017/02/cambiare-logo-login-wordpress/