• Hi,

    My business flavicon file is unrecognized and appears as a skeleton (yikes!) on the web. I replaced a bones theme icon with my 512×512 logo file under site identity customization. I used the same file name “screenshot.png” as my site is coded with that file name. WP, however, changes the file name to “cropped-screenshot-1.png,” and I can’t override this file name, URL, etc. I’ve deleted and re-uploaded the file many times, replaced it on my server, refreshed and cleared caches in WP and in multiple search engines and cannot get rid of the skeleton flavicon. I asked my host if the original file could be cashed somewhere, and they said it was a WP issue.

    My website is fine and has SSL certification, but search results in Google images from my website display the unwanted flavicon. I do use Yoast Premium and uploaded their recommended supplemental SEO glitch fix plugin to no avail. Thanks for any solutions you may have!!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello, Kristyn, & welcome. I think at this point the most helpful thing you can do is to provide your domain name in order for us to check some things out. I realize you’ve waited a long time for a reply only to be asked a question. That’s frustrating, I know, but I think the answer will help eliminate or confirm various theories & give us a path forward. Thank you.

    Is the site in question the one in your support forum profile? If so…

    Here’s the TL;DR:

    You have two totally separate sets of icons on your site: one set provided by your theme, and the other from the WordPress Site Identity icon feature. The two are stored in totally different places and are not linked in any way… so the Site Identity icon cannot overwrite the theme’s icons as you desire.

    With two different sets of icons, browsers are choosing to display the first they encounter — being the theme’s original icons, which is why you can’t see the uploaded Site Identity icon.

    Read below for a detailed explanation and how you may resolve this.

    I replaced a bones theme icon with my 512×512 logo file under site identity customization. I used the same file name “screenshot.png” as my site is coded with that file name. WP, however, changes the file name to “cropped-screenshot-1.png,” and I can’t override this file name, URL, etc. I’ve deleted and re-uploaded the file many times, replaced it on my server, refreshed and cleared caches in WP and in multiple search engines and cannot get rid of the skeleton flavicon.

    The theme’s default icons are stored in the theme’s folder, wp-content/themes/bloom-bones/

    The Site Identity image you uploaded goes into the WordPress uploads folder, wp-content/uploads/ (plus year and month subfolders).

    So even without the uploaded file being renamed, the two sets of URLs are completely different and the new image will not overwrite the default one from your theme.

    Rather, the theme should have some coding logic to display the default icon ONLY if no Site Identity image has been uploaded, and completely remove the default icon code after you upload a Site Identity image. The file name of the uploaded Site Identity image is totally irrelevant, and the fact that WordPress renames the file has nothing to do with your issue.

    But it seems your theme doesn’t have any such logic… so both the original icon provided by the theme and the Site Identity image are present in your pages’ HTML, and browsers are choosing to use the first one encountered on the page (the one provided by the theme).

    (For what it’s worth, the file name cropped-screenshot-1.png implies the image was cropped and you previously uploaded an image with the same file name screenshot.png, so WordPress had to add -1 to the new one in order not to overwrite the existing image. Also, the image file screenshot.png in your theme folder is the theme’s preview image: it’s not the favicon image.)

    Why is this happening? Why two different sets of icons?

    The description of your active theme “Bloom Landscaping” says it is based on the “Bones Development Theme”. Bones is a very old starter theme, last updated 9 years ago… at which time WordPress did not have the Site Identity icon feature at all.

    This explains why you have two different sets of favicons on your site: the one manually coded by your theme’s author (which was the normal way at the time your theme was developed)… and the newish, native WordPress Site Identity icon feature.

    These two are totally separate, and one cannot overwrite the other.

    How to resolve this? You have three options:

    1) You can edit your theme’s header.php file and remove all the lines of the HTML and PHP codes that the theme uses to add its icons… so you can rely on the native WordPress Site Identity icon feature.

    2) REMOVE the WordPress Site Identity icon you uploaded from Customizer, but keep the image on the server. Then, EDIT your theme’s header.php to point the theme’s icons to the URL of the favicon image you uploaded as your Site Identity image.

    3) The last option is to leave the theme’s header.php file untouched… but upload a new image to overwrite the theme’s icon. It seems this is what you were trying to do… but as I’ve explained above, the image uploaded from the WordPress dashboard goes to a totally different directory.

    So you’ll need to use FTP or your web-based hosting File Manager to access your theme’s folder in wp-content/themes/bloom-bones/, and upload icons to overwrite the following image (you need to keep these file names and extensions):

    — favicon.png
    — favicon.ico
    — library/images/apple-icon-touch.png
    — library/images/win8-tile-icon.png

    Sorry for the long-winded explanation: English is not my first language, and Brevity is not my uncle.

    Good luck!

    Thread Starter Kristyn

    (@ohywp)

    Hi George,

    Thank you for taking the time to provide detailed instructions. I was not confident trying Step 1, but I performed Steps 2 and 3 without success. I tried everything twice after restoring backups. There was a moment when I don’t know how or why the exact data altered resulted in the full size bones theme logo appearing in all my web results in Safari only. I got rid of it by restoring a backup. I thought I’d mention it.

    I replaced the following files in the theme wp-content folder. The favicon.png and favicon.ico files were found under the theme name folder and also under library images and changed in both locations. The device files were found in images only and changed there.

    — favicon.png
    — favicon.ico
    — library/images/apple-icon-touch.png
    — library/images/win8-tile-icon.png

    In the header.php folder all applicable code directed to these four files. I tried everything with and without a file in the site id customizer. I also tried changing the screenshot.png references to favicon.png. I understand what you wrote about it, but extensive research from a long time ago purported that updating all instances of screenshot.png would replace the image. That didn’t work. ; ) I also added screenshot.png to images under admin, which also did nothing. I’m hoping the answer is that I need to request a search engine crawl and that changes will take time.

    Because the bones theme is old, would uploading the 24 or so device flavicons help? Before receiving your message, I tried replacing the header.php code with the following, but it didn’t take. I couldn’t tell if the changes were processing. Please let me know if you have other ideas or instructions. The developer is not available any more. Thank you!!!

    <link rel="apple-touch-icon" sizes="57x57" href="/apple-icon-57x57.png"> <link rel="apple-touch-icon" sizes="60x60" href="/apple-icon-60x60.png"> <link rel="apple-touch-icon" sizes="72x72" href="/apple-icon-72x72.png"> <link rel="apple-touch-icon" sizes="76x76" href="/apple-icon-76x76.png"> <link rel="apple-touch-icon" sizes="114x114" href="/apple-icon-114x114.png"> 
    
    <link rel="apple-touch-icon" sizes="120x120" href="/apple-icon-120x120.png"> <link rel="apple-touch-icon" sizes="144x144" href="/apple-icon-144x144.png"> <link rel="apple-touch-icon" sizes="152x152" href="/apple-icon-152x152.png"> <link rel="apple-touch-icon" sizes="180x180" href="/apple-icon-180x180.png"> <link rel="icon" type="image/png" sizes="192x192"  href="/android-icon-192x192.png"> <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"> <link rel="icon" type="image/png" sizes="96x96" href="/favicon-96x96.png"> <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"> <link rel="manifest" href="/manifest.json"> <meta name="msapplication-TileColor" content="#ffffff"> <meta name="msapplication-TileImage" content="/ms-icon-144x144.png"> <meta name="theme-color" content="#ffffff"> 

    Below are what I see — on your website and in Google now.

    Previously, I saw the bone.

    Website: https://i.snipboard.io/W3hDyt.jpg

    Google SERP: https://i.snipboard.io/aRU4YH.jpg

    Thread Starter Kristyn

    (@ohywp)

    Thanks, George! I’ve been seeing my logo in general search results under “All,” and I’m glad you see a change. It’s Google Image search results that are not updating in FireFox, Chrome and Safari. Would you mind letting me know what you see? My testers are seeing the bone too. Thank you!

    Thread Starter Kristyn

    (@ohywp)

    My favicon has disappeared entirely on Google, and this skeleton is a serious problem. I restored backups prior to and after this convo, which had no affect. Previously the site identity customizer controlled successful results in general Google searches. It never got rid of the skeleton in Google Image search results. Please help!! Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘WP changing site identity file name. Can’t override.’ is closed to new replies.