You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Adding iPhone favicons via iWeb

I publish my iPhone friendly website using iWeb '09.
I use a domain name via GoDaddy.
I added a 57p x57p 'apple-touch-icon.png' to the root folder

I can see the favicon at www."rootfolder".com/apple-touch-icon.png

The favicon does not appear when I try to "add to home screen" on my iPhone.

Why?

MacPro DualQuad, Mac OS X (10.6.4)

Posted on Jun 24, 2010 5:45 PM

Reply
Question marked as Top-ranking reply

Posted on Jun 24, 2010 6:03 PM

You need to convert your PNG to ICO. See....

http://www.iwebformusicians.com/WebMusic/URLs-Favicons.html

"I may receive some form of compensation, financial or otherwise, from my recommendation or link."
14 replies

Jun 25, 2010 6:38 AM in response to tarheelbornbred

I just read the Apple Safari Web Clips guidelines and it clearly states the .png format.
I am pretty sure that I have everything in the right format and in the right place,
for example:

www.johndkretschmer.com/apple-touch-icon.png

But the Web Clip image (favicon) does not work on my iPhone.

Could this have something to do with the domain name being different from the iWeb address?

Jun 25, 2010 6:48 AM in response to tarheelbornbred

There's nothing wrong with your icon for the iPhone :

[Create an Icon for Your Web Application or Webpage| http://developer.apple.com/safari/library/documentation/InternetWeb/Conceptual/i PhoneWebAppHIG/MetricsLayout/MetricsLayout.html#//apple_ref/doc/uid/TP40007900-C H6-SW31 ]
[Specifying a Webpage Icon for Web Clip| http://developer.apple.com/safari/library/documentation/AppleApplications/Refere nce/SafariWebContent/ConfiguringWebApplications/ConfiguringWebApplications.html# //apple_ref/doc/uid/TP40002051-CH3-SW4 ]


The Web Clip icon is not the same as a Favicon you see in the addressfield of a browser.

You can use the same Web Clip icon as a favicon. Duplicate it and rename it favicon.ico.

No need to add code to iWeb either. Any modern browser will find it in the root of the webserver.

It does not work when you use web.me.com/username (or any service where the user directory is not root), as the Web/Sites folder on iDisk is not root in that case. You have to add the code to the <head> of the page :

<link rel="shortcut icon" href="favicon.ico" />


Why your Web Clip does not work on a iPhone is beyond me. Perhaps clearing the cache of Mobile Safari will help.

Jun 25, 2010 8:19 AM in response to Wyodor

Paste this in a HTML Snippet and see if that works :

<script language="JavaScript" type="text/javascript">
<!--
var headID = parent.document.getElementsByTagName("head")[0];
var newLink = parent.document.createElement('link');
newLink.rel = 'apple-touch-icon';
newLink.href = '/outlawjosiewells/apple-touch-icon.png';
headID.appendChild(newLink);
// -->
</script>

Jun 29, 2010 11:25 PM in response to tarheelbornbred

The PNG is not required to be at the root. Dashcode specifically reroutes users from the root to /Mobile if it finds you are on an iPhone, so Apple were never expecting these files to be found at the root of the site.

What does dictate the icon however is this tag: <link rel="apple-touch-icon" href="Images/WebClipIcon.png"> you can see the full path being used.

Chances are, your PNG is actually at www.rootfolder.com/Mobile/apple-touch-icon.png.
I also had to update the HTML that Dashcode produced to refer to the image correctly.
The original tag above needed to become: <link rel="apple-touch-icon" href="/Mobile/Images/WebClipIcon.png">

The first version should actually have worked as a relative link since it doesn't start with a slash, but providing an absolute link (led with a slash) was much easier.

By the way, the Apple dev tools (including Dashcode) are free (with a registration no doubt - no need for the paid one though) and quite frankly for building sites, iWeb is a total fail whereas Dashcode is fantastic.

Adding iPhone favicons via iWeb

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.