문제

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

도움이 되었습니까?

해결책

  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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top