C
C
capitalli2010-10-30 04:41:16
Icons
capitalli, 2010-10-30 04:41:16

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

10 answer(s)
M
MT, 2010-11-01
@MTonly

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.

P
pooh1, 2010-10-30
@pooh1

in the head section there will be a tag something like

<link rel="shortcut icon" href="http://habrahabr.ru/i/favicon.ico"  /> 

K
Konstantin Frolov, 2010-10-30
@nitro80

Try firebug to track where it's coming from

S
Shedko, 2010-10-30
@Shedko

So what's the problem with opening the source code and seeing where the favicon comes from?

A
Aidos, 2010-10-30
@Aidos

What theme are you using? Look there header.php

I
igorux, 2010-11-02
@igorux

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.

I
Iskander Giniyatullin, 2010-11-05
@rednaxi

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 question

Ask a Question

731 491 924 answers to any question