WordPress.org

Ready to get started?Download WordPress

Forums

iPhone custom site Icon question (9 posts)

  1. reevo
    Member
    Posted 5 years ago #

    Hi All

    Has anyone managed to get a custom apple-touch-icon.png working on their wordpress blog? I've tried and uploaded the png to various places without success. Wondered if anyone could advise.

    Cheers

  2. ameo02
    Member
    Posted 5 years ago #

    where do you exactly want it? link 2 your site would be helpful.

  3. Reevo,

    I have not tried it yet, but I have to ask myself... What would Dave Taylor do? :)

    In a little while I'll create an icon in PNG format and explicitly put in the

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

    And see what blows up.

  4. Well that was a short trip. I created a 45x45 PNG icon and called it iphone-icon.png (I took it from my gravatar image). I saved that file to my theme's directory.

    In my theme's header.php, before the </head> I added this one line:

    <link rel="apple-touch-icon" href="<?php bloginfo('template_url'); ?>/iphone-icon.png" />

    Then on my iphone I just bookmarked it to my home screen. Works like a charm.

  5. reevo
    Member
    Posted 5 years ago #

    Hey, fantastic jdembowski. Thanks very much for the instructions; worked a treat.

  6. thinkadrian
    Member
    Posted 5 years ago #

    I can't get it to work, I've applied the correct path, but still no cigarr... :(

    Any tips on what to NOT do?

    http://www.trendgiveafuck.com

  7. 50centHAT
    Member
    Posted 4 years ago #

    Tried that but it did not seem to work.

    I put it in my Header.php file as you suggested.
    Any help would be appreciated.

  8. What's the link to your blog? That would help sort it out.

  9. gimsal
    Member
    Posted 4 years ago #

    I made a stupid mistake, which may be of value to someone else--

    I have a plugin installed to provide a special iphone/touch/mobile them for such browsers. I was inserting the code into header.php via the dashboard to my main theme. Of course, that never comes up when accessing the site via iphone, hence no icon.

    I found the iphone's header.php by digging around in my plugins directory (there are several iphone plugins out there, so you'll have to look).

Topic Closed

This topic has been closed to new replies.

About this Topic