Give your site an iPhone bookmark icon

9 March 2010| 7 Comments| Print

I recently configured my site for mobile consumption, by using the WordPress Mobile Edition plugin along with the Carrington Mobile 1.0.2 theme. I noticed when I bookmarked my site using the iPhone that the home screen icon as missing. Today I’m going to run through how to create and setup the home icon for your website.

Create the icon

You will need to produce an image in PNG format that:

  • Measures 57 x 57 pixels, with square corners the (if the image measures other than this size, iPhone OS scales it)
  • Does not use alpha transparency
  • Does not have any shine or gloss

The Code

This part is extremely easy. there are two options, if you have access to your root directory (usually where your index.html file is kept) you can save your icon as apple-touch-icon-precomposed.png and the iphone or ipod will do the rest.

Or you can add a line of meta code to the head of your page which specifies the link to your icon.

Glossy icon:

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

Non glossy icon:

<link rel="apple-touch-icon-precomposed" href="/images/iphone_icon.png" />


Share:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • StumbleUpon
  • Google Bookmarks
  • DZone
  • Reddit
  • Netvibes

7 Comments

  • Romantisk Weekend

    Cool, definitely need to do that, even though I’m guessing most visitors to my site use a regular computer. :-)

  • uberVU - social comments

    Social comments and analytics for this post…

    This post was mentioned on Twitter by ashleyford: Give your site an iPhone bookmark icon http://goo.gl/fb/AskB...

  • Kev Guy

    This is great, followed your tutorial and it works a treat!

  • Ashley

    @kev, I’m sure we’ve met before ;)

  • Al Kamal Md. Razib

    This is a great icon! Thanks for sharing this. :)

  • Rokaiya Yeasmin Munni

    Well, that’s a great scheme to create and setup the home icon for our website.

  • Md.Saiful Alam

    Thanks for showing iPhone bookmark icon. Fine!!!

Leave a comment...

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled site. To get your own globally-recognized-avatar, register at Gravatar.

Your Ad Here