Tip: Developer - How Sites Can Implement Custom Icons for Web Clips

With the advent of Web Clips, iPhone and iPod touch users can now save thumbnails or icons to their devices' Home Screens that'll lead them to specific locations on a Web site. For the most part, these bookmark icons are generated on the fly. However, Apple does offer site managers and developers a way to control how these thumbnails look to iPhone and iPod touch users. All you need to do is follow a few simple steps outlined at Apple's iPhone Dev Center.

Here they are:

To specify a bookmark icon for all pages of a website, place a PNG image named "apple-touch-icon.png" at the root directory of your web server - similar to the "favicon.ico" for site icons.

To override the site bookmark icon on a specific webpage, insert a <link> element similar to <link rel="apple-touch-icon" href="/customIcon.png"/> within the <head> element of the page.

To specify an icon for a single webpage, or replace the website icon with a webpage-specific icon, add a link element to the webpage as in:

<link rel="apple-touch-icon" href="/custom_icon.png"/>

In the above example, replace custom_icon.png with your icon filename.

The bookmark icon dimensions should be 57x57 pixels. If the icon is a different size it will be scaled and cropped to fit.

Safari on iPhone will automatically composite the icon with the standard "glassy" overlay so it looks like a built-in iPhone or iPod touch application.


0 TrackBacks

Listed below are links to blogs that reference this entry: Tip: Developer - How Sites Can Implement Custom Icons for Web Clips.

TrackBack URL for this entry: https://swarm.jupitermedia.com/mt-tb.cgi/1185

Leave a comment

Search Site

Wireless Partners
Become a Wireless Partner

internet.commerce
Partner With Us














About this Entry

This page contains a single entry by James Alan Miller published on May 5, 2008 5:48 PM.

Tip: 64 Seriously Cool iPhone Applications was the previous entry in this blog.

Vodafone Extending iPhone's Reach is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.