To override the site bookmark icon on a specific web page, insert a <link> element similar to <link rel=”apple-touch-icon” href=”/apple-touch-icon.png”/> within the <head> element of the page.
<head> <title>chrisTHIS!</title> <link rel="apple-touch-icon" href="/apple-touch-icon.png"/> </head>
The bookmark icon dimensions should be 57×57 pixels. If the icon is a different size it will be scaled and cropped to fit. My examples are shown to the right. Design tip: leave space around your artwork since Apple crops the edges to make the icon round.
Safari will automatically composite the icon with the standard “glassy” overlay so it looks like a built-in iPhone or iPod application.
Note: I have noticed that the <head> element is not needed for this to work. Just put the .png file in your root folder! Perhaps this isn’t needed if you use the default “apple-touch-icon.png” file name in the root folder? I went ahead and did it anyway, just to be on the safe side.
Discover more from Chris Duke
Subscribe to get the latest posts sent to your email.
Leave a Reply