Random characters are preventing favicon from displaying in IE
-
I was having trouble displaying an ico for my website in IE9 and after inspecting my code I found that there was random characters added to the end of all of my images. I also checked a fresh install of WordPress and noticed that the same thing was happening so that I could rule out the caching plug-in that i have installed.
All of the images appear to display fine except the favicon doesn’t appear and my logs show its name with the extra characters listed as 404 requests.
I had the following code in the header:
<link rel="icon" href="<?php bloginfo('siteurl'); ?>/favicon.ico" type="image/x-icon" /> <link rel="shortcut icon" href="<?php bloginfo('siteurl'); ?>/favicon.ico" type="image/x-icon" />
And it would display like this:
<link rel="icon" href="https://www.ezrapenland.com/favicon.ico?26980" type="image/x-icon" /> <link rel="shortcut icon" href="https://www.ezrapenland.com/favicon.ico?26980" type="image/x-icon" />
After removing the code so the browser would check the top directory for the favicon, it now appears in IE. But does not display in FireFox now.
Does anyone know where the random characters are coming from and how to prevent them from being generated on the favicon.ico?
- The topic ‘Random characters are preventing favicon from displaying in IE’ is closed to new replies.