1

I'm using HTML master page for SharePoint online site. To show favicon i have included the below code in HTML master page,

<link rel="shortcut icon" href="https://siteurl/favicon.ico" type="image/x-icon"/>

But is not showing any icon in the browser.

Thanks in advance

  • try by using <link rel='shortcut icon' href='/SiteAssets/favicon.ico' /> and publish the html – Sunil Sahu Aug 23 '18 at 14:31
  • Thanks for the response. I tried that still the same issue. – Vijay Aug 23 '18 at 14:43
1

Try to do the following:

  • Upload your icon to Site Assets

  • In your Master Page file locate the tag bellow:

    <SharePoint:SPShortcutIcon runat="server" IconUrl="/_layouts/15/images/favicon.ico?rev=23" />
    
  • Replace it with:

    <SharePoint:SPShortcutIcon runat="server" IconUrl="/SiteAssets/favicon.ico" />
    
  • Save and Check-In.

Note: In SharePoint online, Microsoft recommends to don't modify the default master page but it didn't stop you from doing it if you want to do. So, if you need to change the icon without changing the master page try to create a delegate control as mentioned at Best approach to use new .ico image for my sharepoint online site collections without the need to modify the seatle.master

  • Thanks for the response. I'm using HTML master page I can't edit .master file. – Vijay Aug 24 '18 at 4:07
0

Remove shortcut from rel. It is non-conforming and may be causing the line of code to get kicked out on render. Design Manager is picky about clean code.

<link rel="icon" href="https://siteurl/favicon.ico">

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.