favicon

Favicon not showing, my icon is no good

江枫思渺然 提交于 2019-12-01 08:45:33
I am able to use favicons if I copy one from another site and test. But my own doesn't work in IE8/Chrome. Mine is a 32x32 24bit icon created by Visual Studio. I always seem to have problems getting icons working right, what should I use? I thought I could have images up to 64x64... See this site for instructions for creating a favicon.ico - it needs to be 16*16, not 32*32 (though you can have a composite .ico with both sizes). I have created composite .ico files with several sizes, so they appear correctly on the browser and the desktop. First, just to be safe, convert your original icon to

What if the favicon is not named favicon.ico?

久未见 提交于 2019-12-01 06:49:36
Are there any restrictions on naming the favorites icon (favicon) file as anything other than favicon.ico ? I know for sure that it can be named anything, as long as the favicon tag refers to the correct file name. For example: <link href="/somefile.ico" type="image/x-icon" rel="icon" /> <link href="/somefile.ico" type="image/x-icon" rel="shortcut icon" /> The code above works just fine in displaying the icon. What I want to know is does this violate any W3C/HTML specifications or this is permitted usage? According to W3C , the preferred method is to actually specify the favicon in the html

Favicon using wordpress

有些话、适合烂在心里 提交于 2019-12-01 05:59:05
I am trying to change favicon in wordpress. For which i have uploaded image in media and in theme customisation, under site identity i used that image as a favicon. Which is displaying in my admin panel but not in website browser. I tried to inspect it, so it is showing me below line but not coming image name in href <link rel="icon" href="" type="image/x-icon"> So for that i need to change my each php file's head with appropriate code that is <link rel="icon" href="http://my_url/image" sizes="32x32" /> but my question is, is there anyway where i can directly change it without going to all the

What if the favicon is not named favicon.ico?

烂漫一生 提交于 2019-12-01 04:58:08
问题 Are there any restrictions on naming the favorites icon (favicon) file as anything other than favicon.ico ? I know for sure that it can be named anything, as long as the favicon tag refers to the correct file name. For example: <link href="/somefile.ico" type="image/x-icon" rel="icon" /> <link href="/somefile.ico" type="image/x-icon" rel="shortcut icon" /> The code above works just fine in displaying the icon. What I want to know is does this violate any W3C/HTML specifications or this is

Do most browsers automatically search for the favicon.ico?

本小妞迷上赌 提交于 2019-12-01 03:37:11
I would like to know if it is necessary for me to specify it like this: <link rel="icon" href="[URL]" type="image/x-icon" /> <link rel="shortcut icon" href="[URL]" type="image/x-icon" /> or can I just include it in the root and the browser will look for it? Also what's the difference between rel="icon" and rel="shortcut" ? All of the major five browsers look in the site's root for a file named exactly favicon.ico , regardless of type, automatically. You can override this with a link element with rel="icon" , or rel="shortcut icon" . The latter is supported by every browser, while the former is

Favicon using wordpress

不羁岁月 提交于 2019-12-01 03:24:30
问题 I am trying to change favicon in wordpress. For which i have uploaded image in media and in theme customisation, under site identity i used that image as a favicon. Which is displaying in my admin panel but not in website browser. I tried to inspect it, so it is showing me below line but not coming image name in href <link rel="icon" href="" type="image/x-icon"> So for that i need to change my each php file's head with appropriate code that is <link rel="icon" href="http://my_url/image" sizes

If I serve /favicon.ico as image/vnd.microsoft.icon, instead of image/x-icon, will it break on any browsers?

时光总嘲笑我的痴心妄想 提交于 2019-12-01 03:23:31
If I configure Apache to serve /favicon.ico as MIME type image/vnd.microsoft.icon, instead of image/x-icon, will it break on any browsers? Wikipedia's favicon article indicates that image/vnd.microsoft.icon is the "correct" mime type, but that doesn't help if it means some users won't see it. I need to support IE6+, as well as modern browsers (FF/Chrome/Opera/Safari). Google serve /favicon.ico as image/x-icon, and I'd guess they know what they're talking about (or at least, what's compatible). Off the top of my head, image/vnd.microsoft.icon will work only if the image actually is a real ICO

Can pure SVG document specify a Favicon.ico?

和自甴很熟 提交于 2019-12-01 02:58:07
问题 Can a pure SVG document arriving at a browser, support a favicon.ico specification? My case is machine generated pure SVG, no html> or <head> tags available. 回答1: Yes, since SVG is XML, you can add the (x)html link element anywhere in the svg: <link xmlns="http://www.w3.org/1999/xhtml" rel="shortcut icon" href="favicon.ico" /> There's absolutely no need to wrap this in foreignObject. I recommend putting the link element as a child of a <defs> element though, just to let the svg engines know

Favicon NOT working on Edge

China☆狼群 提交于 2019-12-01 02:03:14
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; ?>/favicon.ico" type="image/x-icon" /> <link rel="shortcut icon" href="<?php echo Yii::$app->request-

If I serve /favicon.ico as image/vnd.microsoft.icon, instead of image/x-icon, will it break on any browsers?

可紊 提交于 2019-11-30 23:41:44
问题 If I configure Apache to serve /favicon.ico as MIME type image/vnd.microsoft.icon, instead of image/x-icon, will it break on any browsers? Wikipedia's favicon article indicates that image/vnd.microsoft.icon is the "correct" mime type, but that doesn't help if it means some users won't see it. I need to support IE6+, as well as modern browsers (FF/Chrome/Opera/Safari). 回答1: Google serve /favicon.ico as image/x-icon, and I'd guess they know what they're talking about (or at least, what's