favicon

Favicon NOT working on Edge

送分小仙女□ 提交于 2019-11-30 22:18:06
问题 I have a problem with this favicon I generated for a local server php project. It works fine on most browsers (Google Chrome, Mozilla Firefox and Opera) but on Microsoft Edge it doesn't work (It shows the default tab favicon). I've tried many solutions to this problem like clearing the cache, using image format (.png) instead of icon (.ico), but nothing seemed to work. Here are the lines of code that I've included in the HTML head: <link rel="icon" href="<?php echo Yii::$app->request->baseUrl

Cannot get Favicon.ico to display

我们两清 提交于 2019-11-30 19:59:56
I have copied my favicon.ico file to my Apache document root. I had to add an Apache Rewrite exception for it and now it is accessible from www.example.com/favicon.ico. But when I hit my main URL it does not show up. I thought all you had to do was copy the file with the correct permissions into the doc root? Do I need to make php changes? Thanks! IE and Firefox can behave differently (not sure which one you are using). Try to add the page as a bookmark, then click the bookmark (to load the page). After you do that exit your browser and see if the if shows up then. If that does not work try to

How to display the logo on the address bar?

元气小坏坏 提交于 2019-11-30 19:04:32
I want to show logo on the address bar. But it is visible only on tab next to title. <link rel="icon" href="http://www.mydomain.info/favicon.ico" type="image/x-icon" /> <link rel="shortcut icon" href="http://www.mydomain.info/favicon.ico" type="image/x-icon" /> Bart Friederichs Short answer: yes. That's how many browsers work. Firefox: http://msujaws.wordpress.com/2012/04/23/an-update-to-site-identity-in-desktop-firefox/ Chrome: why doesn't the favicon file show in the address bar of google chrome? and http://productforums.google.com/forum/#!topic/chrome/kUQOKVUwUmw In the wikipedia page , you

Is it possible to use a different favicon for browsers that support theme-color?

人盡茶涼 提交于 2019-11-30 18:52:29
Is there a way to set a different favicon for browsers that support theme-color, either via the meta tag or manifest.json? I have a jet black theme bar, but a mostly-black favicon for use on desktop browsers. I'd like to have an alternate white favicon for mobile browsers, but I don't want to make the assumption that mobile browser === theme-color support, as that's not always going to be the case. Desktop favicon example: Mobile favicon example: Generic Answer You can achieve this by using two master images: A dark design, to be used over light tabs, used for favicon.ico and small PNG icons

Why is Chrome searching for my favicon.ico when I serve up a file from ASP.NET MVC?

夙愿已清 提交于 2019-11-30 11:49:00
I have a controller in MVC serving up images from a database. EDIT: This still happens if I serve up a file over completely standard means in MVC. Every time I request my image, Google Chrome also searches for my favicon.ico. To avoid unnecessary discussions about other things "I should also care about" let us assume I do not care for caching whatsoever in this example and I shall always return HTTP response 200 with the file. In my controller I return the following: return File(fileBytes, contentType); After inspecting Fiddler 2, the following response is generated: HTTP/1.1 200 OK Cache

Favicon format GIF or ICO?

℡╲_俬逩灬. 提交于 2019-11-30 10:55:28
Why use a GIF favicon? Is that for iPhone and iPad can read it? <link rel="icon" href="/favicon.gif"> Stephen Browsers started supporting it. Also, ICO files are an old image file format for icons in Microsoft Windows. Since ICO is vendor specific, some choose to go with GIF. Not to mention that there is an abundance of .gif editors, and few ICO editors. After reviewing supported formats, your best bet is to go with PNG files if you are trying to get away from ICO. Macros A GIF can be animated although browser support for this is currently quite limited. ICO is currently the more widely

Is there a way to render SVG favicons in unsupported browsers?

拈花ヽ惹草 提交于 2019-11-30 07:23:16
As of right now, the only browser that seems to support them is Firefox. Apparently Opera used to support it but later dropped it. Perhaps a JavaScript shim? I don't know of any shims. Unfortunately, I don't think there are any that would work, since a favicon is displayed in the browser user interface rather than on the website itself. However, I do believe the browser support situation is finally starting to improve. As of now, an SVG icon in Firefox only loads on the first page load, and then falls back to .png or .ico favicons if any. The upcoming Safari 9 also has partial support , with

What is the best practice for creating a favicon on a web site?

余生长醉 提交于 2019-11-30 05:54:23
问题 Question What is the best practice for creating a favicon on a web site? and is an .ico file with both 16x16 and 32x32 images better than a .png file with 16x16 only? Could the right method preferred today not be working in reasonably old browsers? Method 1 Placing a file named favicon.ico in the main directory is one way. The browser always requests that file. You can see that in the apache log files. Method 2 HTML tag in the <head> section: <link rel="shortcut icon" href="/images/favicon

PHP - getting a site's favicon and converting it to png if necessary

橙三吉。 提交于 2019-11-30 04:02:15
For any given site "example.domain.tld" or merely "domain.tld" I need to do the following in PHP: If the site has a favicon, get it wherever it is If it is not already a PNG, convert it to PNG Save it to /favicons/example.domain.tld.png If the site has no favicon, do nothing. Any ideas? I'm being stumped by the unreliable fileformat and location of the favicons, but if at all possible I want to avoid downloading the entire source of the page with file_get_contents in order to find it in the headers. Also converting to png seems nontrivial. Thanks, Mala As is typical, I found a passable