Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Orchard: Change favicon

Tags: 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!!!


This post first appeared on ExtremeDev: Development Solutions, please read the originial post: here

Share the post

Orchard: Change favicon

×

Subscribe to Extremedev: Development Solutions

Get updates delivered right to your inbox!

Thank you for your subscription

×