Created
March 31, 2019 15:48
-
-
Save Glinkfr/0cf02235bebf6813448a35d7f3e69c27 to your computer and use it in GitHub Desktop.
Une favicon pour la partie administration du site
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
# d'abord, une fonction pour ajouter le lien vers votre favicon | |
function new_favicon() { | |
$favicon_url = get_stylesheet_directory_uri() . '/images/favicon.ico'; | |
echo '<link rel="shortcut icon" href="' . $favicon_url . '">'; | |
} | |
# maintenant on ajoute la fonction sur les pages de login et d'administration | |
add_action('login_head', 'new_favicon'); | |
add_action('admin_head', 'new_favicon'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment