Can I change favicon without modifying the master page?

SharePoint Asked by default_noob_network on January 4, 2022

I am trying to change the favicon for a site in SharePoint Online. I have seen how it is possible to do this by modifying a master page. However, with SharePoint Online Microsoft was recommended not modifying master pages as it might (will) break things when they push automatic updates- or it may just prevent auto updates, I’m not sure which, but either scenario I want to avoid.

Is this possible? Is there a file I can just replace somewhere on SharePoint Online? Could someone show me that path, if so?

3 Answers

The another option of changing the favicon icon without modifying master page is using jQuery.

Upload your favicon icon in SharePoint and use below jQuery code to replace this on run time:

$("link[rel='shortcut icon']").attr("href","[Favicon Icon URL]");

Hope this will help you meet your requirement.

Answered by Hemant Kabra on January 4, 2022

In 2013, with server access you can just replace the 'favicon.ico' file in the _layouts/15/images/favicon.ico But I don't think there is a way without modifying the master page in SharePoint Online.

Answered by SharePointer on January 4, 2022

It is highly unlikely, that you will break something by replacing the path to the favicon in your master page. In addition, it don't believe there is a way without laying hand on your master page file.

So it is back to basics I'm afraid

  1. Upload your custom favicon.ico file
  2. Make a copy of your master page file.
  3. Edit that copy and replace the path to the favicon.ico
  4. Save & publish

Answered by Marco on January 4, 2022

Add your own answers!

Ask a Question

Get help from others!

© 2024 All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP