Add iOS mobile favicon images to magento Shop

846 views Asked by At

I just created a favicon icon set with realfavicongenerator and now want to implement the code for the mobile devices to my site.

On which page should I add this to the header section? Just the home CMS page of my Magento store?

2

There are 2 answers

2
taschert On

you should add your code in YOUR_THEME/iphone/template/page/html/head.phtml

Add something like this

<link rel="apple-touch-icon" href="<?php echo $this->getSkinUrl('touch_icon.png') ?>"/>

More info here.

0
Roy On

This should be done through XML instead of directly in the template as taschert recommended:

<action method="addLinkRel">
    <rel>apple-touch-icon</rel>
    <href>/path/to/the/icon.png</href>
</action>

For example in your local.xml file of your custom theme.