WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I know it's pretty easy to add a unique favicon.ico to each site in a multisite install. But any ideas for making each sites favicon.ico appear to be in the root directory of the site?

The end result would be http://example.com/favicon.ico and http://anotherexample.com/favicon.ico

share|improve this question

I hope you are using different theme in each site

Just add this code in your header.php file.

<link rel="shortcut icon" href="<?php bloginfo('stylesheet_directory'); ?>/favicon.ico" />

Add your favicon in each theme.

For favicon in admin area.

Add the following function in your function.php file.

function admin_favicon() { ?> 
<link rel="shortcut icon" href="<?php bloginfo('stylesheet_directory'); ?>/favicon.ico" /> <?php } 
add_action('admin_head', 'admin_favicon');
share|improve this answer
:I have the same issue. i did as you said it works fain in front end but not working in backend any idea – Gowri Sep 14 '11 at 8:40
@gowri Updated my answer – Giri Sep 14 '11 at 15:05

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.