adred
adred

Reputation: 43

Favicon not displayed in create react app

It is default setup in create-react-app application that I am using. But the favicon is not displayed. Not even the react favicon that comes with create-react-app. I can see the favicon link in the chrome's inspect tab. Also the icon gets loaded in localhost too for the link "http://localhost:3000/favicon.ico"

Following link is present in the index.html as well

<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">

What am I doing wrong for it to not be displayed ?

Upvotes: 2

Views: 12437

Answers (1)

Beckham_Vinoth
Beckham_Vinoth

Reputation: 721

That issues happened for me too , what i did was i just went to this site .. from there i created my .ico image and gave my absolute path of that .ico image . Ex :

<link rel="shortcut icon" href="/images/myfavicon.ico">

Upvotes: 2

Related Questions