Results 1 to 9 of 9
  1. #1
    Join Date
    Mar 2015
    Posts
    165
    Plugin Contributions
    0

    Default creating home screen icons for apple and android phones

    so i created four different size png images
    apple-icon-57x57.png
    apple-icon-72x72.png
    apple-icon-114x114.png
    apple-icon-144x144.png

    uploaded them to the root directory

    then went to

    /includes/templates/[custom_directory]/common/html_header.php

    and added the following code

    original code
    <?php if (defined('FAVICON')) { ?>
    <link rel="icon" href="<?php echo FAVICON; ?>" type="image/x-icon" />
    <?php } //endif FAVICON ?>


    added code:
    <?php if (defined('FAVICON')) { ?>
    <link rel="icon" href="<?php echo FAVICON; ?>" type="image/x-icon" />
    <link rel="shortcut icon" href="<?php echo FAVICON; ?>" type="image/x-icon" />
    <link rel="apple-touch-icon" sizes="57x57" href="apple-icon-57x57.png" />
    <link rel="apple-touch-icon" sizes="72x72" href="apple-icon-72x72.png" />
    <link rel="apple-touch-icon" sizes="114x114" href="apple-icon-114x114.png" />
    <link rel="apple-touch-icon" sizes="144x144" href="apple-icon-144x144.png" />
    <?php } //endif FAVICON ?>

    does not work lol. can someone please tell me what i goofed on? tia!

  2. #2
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: creating home screen icons for apple and android phones

    Quote Originally Posted by travbacon View Post
    does not work
    In what way isn't it working?

    How are you testing/checking?

    What have you done to diagnose the problem?

    Do the error logs contain any clues?

    Have you tried clearing the browser cache(s)?

    Have you tried with more than one Apple device?

    Can you provide a URL to the store so that someone else can check/validate that it 'doesn't work' for them either?

    Have you asked about this in the Apple forums? It could be a bug/problem with a particular device or model.

    Is there a reason you didn't create/include the precomposed icons?

    Are your icons readable by the server?

    .... and finally, you do realise that this isn't really a zencart issue, don't you?

    Cheers
    RodG

  3. #3
    Join Date
    Mar 2015
    Posts
    165
    Plugin Contributions
    0

    Default Re: creating home screen icons for apple and android phones

    I did nothing to diagnose the problem. I decided just to post here so someone could do the work for me so I won't have to. That is why I posted what code I posted in Zencart, which you correct it is irrelevant, in detail so I could get a reply like yours.

  4. #4
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: creating home screen icons for apple and android phones

    Quote Originally Posted by travbacon View Post
    I did nothing to diagnose the problem. I decided just to post here so someone could do the work for me so I won't have to. That is why I posted what code I posted in Zencart, which you correct it is irrelevant, in detail so I could get a reply like yours.
    Not quite sure how to take this.

    Rod helps those that help themselves. :-)

    Cheers
    Rod

  5. #5
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: creating home screen icons for apple and android phones

    Is the define for FAVICON commented-out in your language file? If so, you'll need to uncomment it.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #6
    Join Date
    Mar 2015
    Posts
    165
    Plugin Contributions
    0

    Default Re: creating home screen icons for apple and android phones

    Quote Originally Posted by RodG View Post
    Not quite sure how to take this.

    Rod helps those that help themselves. :-)

    Cheers
    Rod
    Take it in the most cynical way nimRod :)

  7. #7
    Join Date
    Mar 2015
    Posts
    165
    Plugin Contributions
    0

    Default Re: creating home screen icons for apple and android phones

    Quote Originally Posted by DrByte View Post
    Is the define for FAVICON commented-out in your language file? If so, you'll need to uncomment it.
    It is not. If I did wouldn't this remove the favicon on the regular full scale browser?

  8. #8
    Join Date
    Feb 2008
    Posts
    529
    Plugin Contributions
    0

    Default Re: creating home screen icons for apple and android phones

    For what it's worth - I didn't do anything fancy like this - simply replaced the favicon with my own, using same name and dimensions. Cleared cache. Nothing seemed to bring it up. Eventually, days later, it simply appeared. This happened each time I did a rebuild to new version of my site.

  9. #9
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: creating home screen icons for apple and android phones

    Quote Originally Posted by soxophoneplayer View Post
    For what it's worth - I didn't do anything fancy like this - simply replaced the favicon with my own, using same name and dimensions. Cleared cache. Nothing seemed to bring it up. Eventually, days later, it simply appeared. This happened each time I did a rebuild to new version of my site.
    This is/can be expedited if prior to putting the new site online that the caching of site information is temporarily reduced early enough before the transition. Then the "wait" is reduced.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

Similar Threads

  1. v139g Any Templates for Smart Phones and Tablets?
    By irishshopper in forum Addon Templates
    Replies: 1
    Last Post: 20 Mar 2013, 12:36 AM
  2. Horizontal alignment for Sold out icons and details icon
    By newbie456 in forum General Questions
    Replies: 1
    Last Post: 23 Aug 2011, 11:39 AM
  3. display payment method icons in main screen
    By beavertje in forum Basic Configuration
    Replies: 3
    Last Post: 9 May 2009, 06:35 PM
  4. email and PDA phones
    By snarkys in forum General Questions
    Replies: 0
    Last Post: 11 Feb 2007, 11:53 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR