Display a different favicon for wp-admin

Adding this snippet to the functions.php of your wordpress theme will let you display a different icon for the wp-admin. Don’t forget to upload your favicon.ico to the wp-content directory.

 

 

function favicon4admin() {
echo '<link rel="Shortcut Icon" type="image/x-icon" href="' . get_bloginfo('wpurl') . '/wp-content/favicon.ico" />';
}
add_action( 'admin_head', 'favicon4admin' );

Leave a comment