Adding Favicon into Neocities site - html

i have been using Neocities to create my website, I've ran into a problem where no matter what i do, my Favicon won't work. It just shows no favicon. i tried it with some other random Favicon from another site and it doesn't work. If anyone can point me in the right direction, that will be helpful.
Tried changing the code, copying code from other sites, following a tutorial, and switching from .ico to .png and still nothing

Related

Favicon of format PNG doesn't appear on Google search result page

<link rel="shortcut icon" href="https://www.website.com/template/img/website/favicon.png?ver=v2.1.31">
We changed our 32x32 png favicon to a 48x48 png favicon, because one of our websites reverted back to the default Wordpress favicon and after deploying the change we noticed that the favicon was reverted back to the Wordpress favicon still on the websites we deployed. So I was wondering if there was a fool-proof way of making sure that our favicon appears on the search result page.
One of the answers I got from Googling was that we should change favicon.png to favicon.ico, but the Google documentation tells us it's not necessary. What changes can we do to make it work without changing the file format?
https://developers.google.com/search/docs/advanced/appearance/favicon-in-search
First, keep in mind that Google can take days or weeks before reflecting your icon in its search results. So any change you make needs patience, unfortunately.
However, you can get insights from Google. Visit https://www.google.com/s2/favicons?domain=www.website.com , just make sure to replace the domain parameter with your own site. There is no evidence that this is what Google is actually using to fill its results pages. But chances are that what this entry point returns is what you can expect in results pages a bit later.
According to me to add a favicon, one should use the .ico image. Otherwise, it might show some issues. Try converting your .png image to .ico by using this converter.
This will work for sure.
Here's a text from a webpage I searched about the favicon.
A favicon can actually be either a PNG, GIF, or ICO file. However, ICO files are typically used more than others as the file size is smaller and it is supported in all major browsers. PNGs are used more commonly for IOS, Android, and Windows 10 devices.
So according to this .ico is mostly preferred over any other extension of the image. Hence I would recommend you to use .ico extension for the image.

Favicon Only Works with IP

EDIT:Solved, had to restart Firefox twice for some odd reason.
Note: I use firefox on my main computer.
I made a favicon recently for my website, so I put it into the root directory as "favicon.ico" as you would usually do. I refreshed my page, and it didn't work. I cleared my cache, still didn't work. Then I just type in my IP into the address bar, and it worked. I go to my chromebook and type my url, and I get the Freenom logo as a favicon in chrome. I have tried using the <link> tag in my headspace, and that does not work either. Does anybody know what's going on? Since Freenom's favicon is showing, they might have something to do with it.
Ill put the link here, but I'm removing it when my problem is solved.
This site is awesome to use https://realfavicongenerator.net/
It generates all the favicons for all devices out now. This page has a good example

Favicon Not Showing Up?

Any idea why this isn't working?
<link rel="icon" type="image/png" href="Favicon.png"/>
It's just not showing up. I used the exact same setup on a local practice website, and it worked fine (it was using the same picture as well). Are you supposed to just put the picture onto your website server and reference it like I did? Or is there something I don't know about?
Also, how exactly do you get a favicon to show up on IE? Yes, I've researched this, and all the methods I've found just don't work...
You can just put the icon [favicon.ico] in the root directory of your website. That's what I did.
Oh yeah, to answer the question, it could be because it is a png ;)
There is a PNG to ICO file converter online, so that's what I used to get around the IE issue. www.convertico.com
*If you test this locally, it might not show up. My local pages don't show a favicon.
Yes, you should upload the file to your web server. The reason why this works locally for you is because it is in the same file as your html document. There are two things you do to get your favicon working:
Upload the file to the same folder as in your html document. If you have a web host, such as altervista.org, you could upload your favicon to the website.
Upload your favicon to an image uploading website. You could use google drive for all it's worth, anything website that can publicly display your photos is fine. If you upload this to a server, you can find the link to your image and reference that favicon in your link tag.
Hopefully this helps!
I faced to the same problem.After checking my whole code for hours , finally I figured out the problem.I used base tag , it caused the favicon icon to do not be displayed.When I removed , the problem was solved.So, I recommend you to remove base tag if you have used in your website.
I hope it could help!

.png images not displaying

I have a issue of displaying .png images on web my web page. Other image types excluding .png just work fine. The issue is .png. The web site is located in a sub domain. In the root, a wordpress site is running.
In firebug, I can see a 403 error. But I can assure that I have set 0777 permissions for all images. It couldn't be a permission issue.
Rarely, .pngs are loading. But the second request gives a broken image. I have applied different cache removal techniques including <FilesMatch> directive in .htaccess, appending version attributes to image link, using # ...etc. But nothing works.
The most complicated point is that when copy & paste the image link in browser it shows the .png. However not within a web page.
Can anybody help me resolve this?
Thanks in advance.
Even I tried executing it in a browser. But the .png image doesn't showup for me.
Try changing the image folder permission to 755 or 644.

Problems adding Background Image when creating theme for Chrome

I am presently following this guide: http://code.google.com/p/chromium/wiki/ThemeCreationGuide
to create a theme for Google Chrome.
Everything seems to work fine, the only problem i have is applying a background image to the browser. The "theme_ntp_background" that supposed to point and load the background-image seems not to be working :(
Any ideas on what may be wrong? it is definitely not the file path, i ensured this was correct.
Thanks!
Chrome can only load png images in themes, so make sure that the image you're trying to use is a png file.
It would also help if you posted the code found in the manifest file for this theme.