3

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.

253
  • 49
  • 1
  • 6

3 Answers3

5

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

megawac
  • 10,953
  • 5
  • 40
  • 61
  • Thanks, it's saying 'null' on the admin page though which is where I need to find the location. – 253 Dec 02 '13 at 21:13
  • If it produces null then the favicon isnt being set. You can copy the html in my answer and youll get the same favicon on the admin pages – megawac Dec 02 '13 at 21:14
  • Would like to know where it's coming from where none is referenced, but the best answer as it solves the issue and is concise. May be a cache issue even though it was cleared. – 253 Dec 02 '13 at 21:22
1

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.

sheng
  • 1,226
  • 8
  • 17
  • Sorry, yes I should've been more accurate - the page source looks normal on unsecured pages, but the secured pages are using the old favicon and I'm not sure where it's coming from. There isn't actually one specified now as I removed the new one, but it's still showing the old one with no favicon referenced. – 253 Dec 02 '13 at 21:08
  • @user3025377 then clear your cache. Browsers (at least Chrome) *really* like caching them. – sheng Dec 02 '13 at 21:10
-1

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

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