Next.js Discord

Discord Forum

favicon not updating.

Unanswered
Sloughi posted this in #help-forum
Open in Discord
SloughiOP
about a month ago, a finished building a website that was to replace the current wordpress website. I added the header that linked to the favicon location. The favicon is still not updating on the website. It still shows the wordpress favicon. I have checked the filepath, its fine. Ive tried using several different browsers, other devices, clearing cache, etc. thats not the problem.

Any ideas?

74 Replies

SloughiOP
im using app router
SloughiOP
@Sloughi https://i.imgur.com/91cXpyC.png
thanks. Put your favicon.ico inside your app/ folder. Then remove the header with the link in it
@B33fb0n3 thanks. Put your favicon.ico inside your app/ folder. Then remove the header with the link in it
SloughiOP
this somehow made the wordpress favicon go away but now there just no favicon
Hello there!

The solution that B33 gave is good!
Sometimes in local the favicon dont show but we got it in production
[sftwareco.com](https://sftwareco.com/)
Can you show how you did your favicon ?
Barbary Lion
@Sloughi had the same issue, just rename favicon.ico to icon.ico, not sure why it works but it should fix it in production - at least it did for me.
SloughiOP
Barbary Lion
ye
lmk if it works!
also might have to put it back in the root because it looks like b33 had you move it out
SloughiOP
didnt work unfortunately
@Sloughi didnt work unfortunately
Barbary Lion
try putting it back in your app folder
then force reload when you visit the production page
SloughiOP
still nada
Barbary Lion
really weird
SloughiOP
yeah ik i feel like ive tried everything
Barbary Lion
is the ico a valid ico file?
SloughiOP
how do i check that
Barbary Lion
download a different .ico file and try using it, if it works then you know your ico file is bad
if you download from the website just make sure its .ico format don't download as png and rename it
SloughiOP
didnt work in app or root
i also dont get why its still showing the wordpress one. the domain has been fully disconnected from wordpress for a month
Is your favicon and ico file or it was a png and you rename it?
SloughiOP
the one i was using was a png and i used website converter
but i just tried the one linked above and it doesnt work either
downloaded as .ico
You need to remove favicon from public also
You can only have one favicon file in your project
SloughiOP
ah
Is that better?
SloughiOP
didnt work in root
trying app
Yeah you need to put it in app dir
And delete others from project
Lemme know if that good
SloughiOP
didnt work
tried favicon.ico and icon.ico
in app dir
but it says the favicon.ico is present
@Sloughi idk if this is good website https://realfavicongenerator.net/favicon_checker?protocol=https&site=sftwareco.com
Barbary Lion
check on a different browser or try clearing your cookies, could just be your browser
@Sloughi tried favicon.ico and icon.ico
Put your favicon.ico in your app folder (only one favicon) go in your browser. Press F12, go in your network tab check the box „disable cache“ and reload the page. Now the correct favicon will be visible
SloughiOP
yes i did this
do you see the correct favicon?
@Sloughi yes i did this
Do you see it?
SloughiOP
no
i see the wordpress one still
ive tried different browser as well
Are you using a CDN ?
SloughiOP
no
Can you create a minimal repro so we can look though all the code. It should have the same issue that you are currently facing @Sloughi
Cairn Terrier
i am using this method for icon, hopefully it will work
Chortai
@Sloughi I recommend this command. Ctrl + Shift + R
@Cairn Terrier i am using this method for icon, hopefully it will work
SloughiOP
tried this, didnt work
@Sloughi dmed you
Japanese jack mackerel
add this to metadata : icons: {
shortcut: "",
},
@B33fb0n3
SloughiOP
i sent you a message
Japanese jack mackerel
i think u might have to delete the cache
Japanese jack mackerel
lmao
@Sloughi can you share an update?
SloughiOP
hey sorry ive been really busy
going to look into it tmrw
To upgrade also everyone that wasn’t included in the private chat:

He provided the code and I created a repro:
https://d9swpx-3000.csb.app/

As you can see the favicon is fine. He also tried to push it on vercel and there it’s shows too. Only on netlify it’s not visible yet