Created
March 31, 2019 15:49
-
-
Save Glinkfr/c7d54d2fd44564ef0ceb2fb1b1fb024e to your computer and use it in GitHub Desktop.
Comment personnaliser sans plugin le logo de la page login du site
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
# personnaliser le logo de la page login | |
function custom_login_logo() {echo '<style type="text/css">h1 a { background-image: url('.get_bloginfo('template_directory').'/images/custom-login-logo.png) !important; }</style>'; } | |
add_action('login_head', 'custom_login_logo'); | |
# on peut aussi ajouter un fichier CSS personnalisé | |
# (il vous faudra créer le fichier admin.css dans votre thème) | |
function custom_login_css() | |
{ | |
echo '<link rel="stylesheet" href="' . get_bloginfo('stylesheet_directory') . '/admin.css" type="text/css" media="all">'; | |
} | |
add_action( 'login_head', 'custom_login_css' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment