• 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?

    https://www.ezrapenland.com/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Can you find the favicon lines in your header.php theme file and paste them here?

    Thread Starter JeremyPBritton

    (@jeremypbritton)

    Thats where I had had them. They are not there know because the client was happy that the favicon was now showing in IE. I just wanted to know where this is happening and if there is a way to exclude an extension from the list or make it stop altogether.

    I have no idea what is generating those numbers, sorry. If I could see the favicon lines in your header.php that you had before, I might be able to suggest something.

    Thread Starter JeremyPBritton

    (@jeremypbritton)

    It’s not just the favicon that it is doing it to. If you search for any images like “logo.gif”, it has been changed as well.

    <img src="https://www.ezrapenland.com/wp-content/themes/notesil/i/logo.gif?26980" alt="icon" class="blog-icon" />

    I’m trying to find out why it is happening to all images so that I can try to prevent it from happening to ico’s.

    Here is a site gossip site that I visit regularly that I noticed has the same problem: https://www.thesuperficial.com/

    Have you tried turning off all plug-ins and seeing if the numbers go away? If they do, reactivate plug-ins one by one to find the culprit.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Random characters are preventing favicon from displaying in IE’ is closed to new replies.