Answer the question
In order to leave comments, you need to log in
Site icon in site header
Hello Habr.
Help, I've been struggling for half a day - I'm using a theme for Wordpress, it has its own icon as standard (the one called favicon). I wanted to change to my icon. I changed the previous icon in the site directory to my own, I didn’t change the file name, the sizes are the same, the format is the same.
But for some reason the site continues to display the old icon.
What I tried:
- clear the cache
- reload the page Ctrl F5
- look for links to favicon.ico files throughout the code
The site stubbornly continues to display its own.
There is a suspicion that he is loading the icon from the web, maybe from the website of the theme developer. How to find this link?
Thank you all in advance!
Answer the question
In order to leave comments, you need to log in
The favicon icon is cached in some special place in the browser. The safest thing is not to replace the existing icon, but to save it under a new name and specify the path to this new file in the link element in the head section of the page.
in the head section there will be a tag something like
<link rel="shortcut icon" href="http://habrahabr.ru/i/favicon.ico" />
So what's the problem with opening the source code and seeing where the favicon comes from?
The style file is in your theme directory, not in the root of the site. And here it is: link rel="shortcut icon" href="/head.ico" means that the icon is taken from the same place, from the theme directory.
The favicon is cached in who knows where, in order to reset the favicon cache, you need to open it in the browser via a direct link (such as habr.ru/favicon.ico) and press f5 a couple of times until it is updated.
ctrl+f5 and cache flush usually don't hit
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question