The Mighty Blog

Changing the Default Favicon for Your Site

Jun 27

Written by:
6/27/2009  RssIcon

DotNetNuke Gear Logo In DotNetNuke®, a favicon of the DNN gear logo is placed as the default favicon.  For some websites, this is no big deal.  However, for any site that requires its own branding, changing the favicon is a really big requirement.  Luckily, DNN makes changing this easy, and flexible.

First of all, in the root of your DNN site, there are two favicons:

  • favicon.ico
  • DotNetNuke.ico

Both files contain the same image, the DNN gear.

You could just overwrite the favicon file with your own.  However, that is technically making a core code change, and if you end up putting a second portal on your DNN instance, both sites will be using the same favicon.  This will likely put you into the same position that you originally were in, in the first place.

The real solution is to put your favicon into the root of your portal directory, saved as favicon.ico.  For example, for the root site, your file name and path might match the following:

~/Portals/0/favicon.ico

When your site is loaded, the DNN framework will automatically grab and send the new favicon to the web browser, instead of the one on the root of your DNN installation.  This will work for each and every portal that you have as part of this single DNN instance.  For example, if you have 50 portals hosted in your DNN instance, each one can have its own unique favicon using this method.

Technorati Tags: ,,,

Tags:
Categories: DotNetNuke

2 comment(s) so far...


Gravatar

Re: Changing the Default Favicon for Your Site

I suspect that this would also give you the benefit of not having your favicon over-written with the default whenever you upgrade. Haven't tested that theory yet, though.

By Sam Erde on   7/2/2009
Gravatar

Re: Changing the Default Favicon for Your Site

As long as you upgrade using the actual "upgrade" package, and not the "install" package, you shouldn't have any problems. Only the install package has the DNN favicon in the root.

(Yes, some people upgrade using the install package. I do not recommend it though.)

By Will on   7/2/2009

Your name:
Gravatar Preview
Your email:
(Optional) Email used only to show Gravatar.
Your website:
Title:
Comment:
Add Comment   Cancel 
Add to Technorati Favorites
Tweet about my blog
The opinions expressed here are the personal opinions of Will Strohl and do not necessarily represent the views and opinions of the DotNetNuke Corporation.
© Copyright 2004-2011 by Will Strohl. All rights reserved. Website Skinned By: Ralph Williams  Website Hosted By: Applied Innovations