How To Add Favicon icon to the WordPress Admin & Login Pages

How To Add Favicon icon to the WordPress Admin & Login Pages

Add following in your theme’s functions.php file, or into a custom plugin:

function add_favicon() {
  	$favicon_url = get_stylesheet_directory_uri() . '/images/favicon.ico';
	echo '<link rel="shortcut icon" href="' . $favicon_url . '" />';
}
 
add_action('login_head', 'add_favicon');
add_action('admin_head', 'add_favicon');

 

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *