3

I'm trying to replace the Magento favicon, but I can't seem to find it. Where is it?

3 Answers 3

2
  • First point, check the source of your front page
    • if you found a meta like this: <link rel="shortcut icon" href="a/path/favicon.ico" type="image/x-icon" /> just change the favicon in the named path
  • Else, browsers try to get the favicon to the root of your website so:
    • either you put a file favicon.ico at this place
    • or you put a meta like above with the good path to your favicon.
1
  • This only works if you have just one shop. Better upload the favicon to the theme.
    – SPRBRN
    May 29, 2013 at 8:38
1

The easiest way is to add the favicon meta tag to your theme's header and point it to the favicon in your root. A more complex way (I think) is replacing the favicon in /skin/frontend/theme/interface/favicon.ico, but I never had any success with that method.

1
  • The path is basically $MAGENTO/skin/frontend/package/theme/favicon.ico thanks it fixed it :)
    – user2821
    Nov 16, 2010 at 15:28
0

You can also consider using rewrite and completely bypass Magento:

.htaccess:

RewriteEngine on
RewriteRule ^favicon\.ico$ /images/favicon.ico [L]
1
  • It works, but it's not preferred I think. Better do it right in the template, less confusing. And if you have multiple shops with multiple designs and multiple favicons, you need to use conditions in the htaccess. All in all you better upload the favicon to the template.
    – SPRBRN
    May 29, 2013 at 8:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.