29 October 2012

Orchard: Change favicon

Hello,

As you all probably know Orchard is a free, open source, community-focused project aimed at delivering applications and reusable components on the ASP.NET MVC platform.

So, now about the favicon, to change the default Orchard's favicon you need either to install the Favicon module, which I think is too complicated for this case, or to override the location of the favicon by overriding the default Document.cshtml template - just copy/paste to your theme.

You will find something like below in Document.cshtml:

Code:
RegisterLink(new LinkEntry {Type = "image/x-icon", Rel = "shortcut icon", Href = Url.Content("~/.../FavIcon.ico")});

Change the path of the href attribute to where your favicon is, and here it is you have your own favicon.

Happy coding!!!

Need more? Leave comments and subscribe to my blog.

.