253
253

Reputation: 59

Locating favicon location

The site uses a favicon stored in the root, but the https admin section is using the old favicon and I'm not sure where it's coming from.

Does anyone know of a way to find favicon site resources, i.e. where they're coming from? The unsecured pages all use the same head CSS with references to the same favicon, but the admin references no favicon, so I'm baffled as to why it's using the old one on those pages.

Upvotes: 3

Views: 12037

Answers (3)

Minecraftchest1
Minecraftchest1

Reputation: 125

Most browsers will look for a favicon at /favicon.ico if they don't see a tag.

Source: https://stackoverflow.com/a/21359390/13683677

Upvotes: 0

megawac
megawac

Reputation: 11353

On your site using the selector document.querySelector("[rel='shortcut icon']") gets the element:

<link rel="shortcut icon" href="http://www.inside-guides.co.uk/favicon1.ico" type="image/x-icon">

You can reveal the element in the html panel with most javascript consoles if you want to see where its being declared in your html. In your case its declared:

enter image description here

Upvotes: 6

sheng
sheng

Reputation: 1372

If there is no favicon.ico in the root of the site, then view the source of the site and look for <link rel="shortcut icon"/>. It should have a href attribute. This would tell you the file location.

Upvotes: 1

Related Questions