4

I have changed my store favicon and it works perfectly when navigating through my store. However when i open a datasheet from my products a new window opens up displaying the PDF file, however my favicon changes back to the magento default icon, does anybody know how to change this or why it happens.

Thanks in advance.

6

This happens, because magento stores the favicon in skin:

<link rel="icon" type="image/x-icon"
    href="http://example.com/skin/frontend/enterprise/example/favicon.ico"  />
<link rel="shortcut icon" type="image/x-icon"
    href="http://example.com/skin/frontend/enterprise/example/favicon.ico"  />

When you open a PDF, there is no HTML behind, therefore no head and therefore no favicon definition, so your browser falls back on the default position of the favicon, which is http://example.com/favicon.ico and obviously you didn't change this icon.

If you have more than one domain, you should think about using a rewrite in htconf or htaccess instead of changing the file, because you can only have one favicon.ico in the root ;-)

| improve this answer | |
  • Great explanation so thank you very much!! but i am very new to magento so where about would i have to go to change the example.com/favicon.ico icon ?? thank you – Adam Allen May 27 '14 at 10:46
  • the file itself lives in the root directory, beside the index.php, cron.php and api.php. So you only have one favicon, just change this file against the one in your skin (copy it! not move ;-)) – Fabian Blechschmidt May 27 '14 at 10:50
  • every time I copy over my favicon to the root directory it overrides it to the default magento one. Even if i delete the magento favicon out of the directory then upload my one. When iclick preview it still shows the default one. One ideas? – Adam Allen May 27 '14 at 11:06
  • delete the cache of your browser. – Fabian Blechschmidt May 27 '14 at 11:07

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.