Add Favicon to Your WordPress Admin

Supplemental 28 views
0
0 Flares 0 Flares ×

If you are making a custom client admin section, or a login & profile section that might require a different or altered favicon, this code might be useful.

<?php
// add a favicon for your admin
function so_admin_favicon() {
	echo '<link rel="Shortcut Icon" type="image/x-icon" href="'.get_bloginfo('stylesheet_directory').'/images/favicon.png" />';
}
add_action('admin_head', 'so_admin_favicon');
Provided by: Piet Bos
Tagged with: , ,
Posted in Wordpress

Discuss:

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

No Trackbacks.

Login

Register | Lost your password?
0 Flares Twitter 0 Facebook 0 Google+ 0 0 Flares ×