Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

replace favicon in mvc4

I have provided <link rel="shortcut icon" href="~/Images/logo.gif" /> in my layout but i wish to replace the favicon on all the pages, even where layout is not used. I replaced the favicon file with my favicon (present in the root folder) still it loads the default favicon on pages without layout. What more needs to be changed in order to get my favicon. a similar but slightly different question has already been asked but isnt answered by anyone.link

like image 968
Nikitesh Avatar asked Feb 03 '14 10:02

Nikitesh


1 Answers

  1. It's better to convert your .gif to .ico, you can do this online
  2. It's a convention to rename the icon to 'favicon.ico'

You can find more information on Wikipedia - look at the section 'How to use'

Your html should look like:

<link rel="shortcut icon" type="image/ico" href="~/Images/favicon.ico">

Check Mark Gravell's solution here

like image 87
Tassisto Avatar answered Nov 14 '22 06:11

Tassisto