0

Curious fact: the favicon works only on admin dashboard on chrome/opera.

I've tried to clean the cache, but still not work. The line of code to the favicon its being included, buts it just doesnt work.

favicon including codehtml

I'm including the favicon through admin panel, to be dynamic. I just dont want to include it direct on the code.


  • Firefox (Works)
  • Edge (Works)
  • Tor (Works)
  • Chrome (Works only on admin dashboard)
  • Opera (Works only on admin dashboard)
3
  • Sorry, but it is just impossible to guess what is going wrong on your server based on this info. If this happens with wordpress "vanila" themes, you should report it as a bug. If it happens with some other theme, you should contact the theme author. – Mark Kaplun May 5 '18 at 2:33
  • Go to customize -> site identity and add favicon their – Shubham Dahale Jul 26 '19 at 15:09
  • Yes, I have exactly same issue, only Chrome WP frontend not working. If you insert Icon with default Appearance -> Customize, somehow it works. But not with custom code, custom code works on backend it means codes are correct tho. – Micah Jul 16 '20 at 5:02
0

try adding type="image/png" in the link definition.

Additionally Chrome is a little bit harder to clean the favicon cache (needs also a restart)

This thread can help you perhaps, there are several hints there

The other thing is, I remember have read somewhere, that it is best practice to have the favicons in the root folder, not the wp-content/uploads/ folder

2
  • the thing is: im uploading the favicon dynamically through the dashboard, then im not in control of where the uploads go. Anyway, thanks for helping. – shoxton May 6 '18 at 18:29
  • i get that... altough: it's not a very common issue that the favicon changes, in fact all the opposite. It shouldn't change often. I normally use the realfavicongenerator.net to generate icons and html code for the header, which I include manually in the header.php of the theme itself... in fact it makes a nearly too broad support, but I never had problems. As suggested above my Mark Kaplun, one of your problems is that depending on which theme you use, you have no control over the code produced, so it's harder to debug. – Canelo Digital May 7 '18 at 15:20
0

I had the exact same problem and it took me forever to figure it out! I don't know WHY but Chrome was the only browser that wouldn't see the favicon that was uploaded through Wordpress (and it WOULD show the favicon when on the admin page).

What finally worked for me was uploading a file named favicon.ico to my root public directory (using FTP). It's just a jpg, re-named favicon.ico. After I did that, Chrome would see it.

2
  • Thanks for the answer! although the goal of having opened this issue was the problem by including the icon dynamically. Anyway, thanks for helping. I've already gave up and currently i'm including the favicon directly on the code, same as you! :D – shoxton Jan 17 '19 at 23:37
  • Yes, I have exactly same issue, only Chrome WP frontend not working. If you insert Icon with default Appearance -> Customize, somehow it works. But not with custom code, custom code works on backend it means codes are correct tho. – Micah Jul 16 '20 at 5:05

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.