Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

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.