function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sam SwannSam Swann 

Implementing Favicon in a community's Napili Template using a Lightning Component

Hi,

For my Salesforce Community, I have implemented a Lighinging header component which holds all the top navigations and company's logo.
Now I wanted to take down the Salesforce Cloud favicon and the Tab text(label) with my company's logo (favicon 16X16 icon) and custom text on the tab.

How to implement in a Lightning component?

Tried using this code in the header section, which didn't worked:
<link rel="shortcut icon" href="{!$Resource.Source + '/Source/favicon.ico'}" type="image/x-icon" />
Please help me. All answers are welcomed. 
Thanks
Dan JimenezDan Jimenez
This should get you on the right path.

https://releasenotes.docs.salesforce.com/en-us/spring16/release-notes/rn_networks_commbuilder_page_head.htm

I'm still not sure how to reference the image (via $Resource or direct link, not sure yet)
Dan JimenezDan Jimenez
Nevermind. Found this solution. Just tested it and it works:

https://salesforce.stackexchange.com/questions/174181/favicon-is-not-working-outside-of-the-community
Sam SwannSam Swann
Haha, I figured it out any ways. Thanks bud.