Created
August 24, 2017 08:21
-
-
Save ingozoell/3ee0ad71c3d3912eaea4063005b599e0 to your computer and use it in GitHub Desktop.
WordPress Favicon Admin
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
/* | |
* Adding Favicons to the WordPress Admin & Login Pages | |
* http://clarknikdelpowell.com/blog/how-to-use-favicons-on-the-wordpress-admin-login-pages/ | |
* | |
*/ | |
function add_favicon() { | |
$favicon_url = get_stylesheet_directory_uri() . '/favicon.ico'; | |
echo "\n"; | |
echo '<link rel="shortcut icon" href="' . $favicon_url . '" />'; | |
echo "\n"; | |
echo '<link rel="icon" sizes="16x16 32x32 64x64" href="' . $favicon_url . '" />'; | |
echo "\n"; | |
} | |
add_action('login_head', 'add_favicon'); | |
add_action('admin_head', 'add_favicon'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment