Forums / Templates, Stylesheets, Page Layout / creating home screen icons for apple and android phones

creating home screen icons for apple and android phones

Views: 1,419

Results 1 to 9 of 9
10 Jun 2015, 1:44 PM
#1
travbacon avatar

travbacon

Zen Follower

Join Date:
Mar 2015
Posts:
169
Plugin Contributions:
0

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!

10 Jun 2015, 7:36 PM
#2
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: creating home screen icons for apple and android phones

travbacon:

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

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

10 Jun 2015, 10:50 PM
#3
travbacon avatar

travbacon

Zen Follower

Join Date:
Mar 2015
Posts:
169
Plugin Contributions:
0

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.

10 Jun 2015, 10:53 PM
#4
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: creating home screen icons for apple and android phones

travbacon:

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

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

11 Jun 2015, 1:33 AM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

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.

27 May 2016, 7:15 AM
#6
travbacon avatar

travbacon

Zen Follower

Join Date:
Mar 2015
Posts:
169
Plugin Contributions:
0

Re: creating home screen icons for apple and android phones

RodG:

Not quite sure how to take this.

Rod helps those that help themselves. :-)

Cheers
Rod

Take it in the most cynical way nimRod :)

27 May 2016, 7:16 AM
#7
travbacon avatar

travbacon

Zen Follower

Join Date:
Mar 2015
Posts:
169
Plugin Contributions:
0

Re: creating home screen icons for apple and android phones

DrByte:

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?

27 May 2016, 11:53 AM
#8
soxophoneplayer avatar

soxophoneplayer

Totally Zenned

Join Date:
Feb 2008
Posts:
534
Plugin Contributions:
0

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.

27 May 2016, 7:55 PM
#9
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: creating home screen icons for apple and android phones

soxophoneplayer:

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...