AKSE Posted October 23, 2017 Share Posted October 23, 2017 So I created the touch icons, uploaded them and added this to my header.tpl <link rel="apple-touch-icon" href="/apple-touch-icon.png" /><link rel="apple-touch-icon" sizes="57x57" href="/apple-touch-icon-57x57.png" /><link rel="apple-touch-icon" sizes="72x72" href="/apple-touch-icon-72x72.png" /><link rel="apple-touch-icon" sizes="76x76" href="/apple-touch-icon-76x76.png" /><link rel="apple-touch-icon" sizes="114x114" href="/apple-touch-icon-114x114.png" /><link rel="apple-touch-icon" sizes="120x120" href="/apple-touch-icon-120x120.png" /><link rel="apple-touch-icon" sizes="144x144" href="/apple-touch-icon-144x144.png" /><link rel="apple-touch-icon" sizes="152x152" href="/apple-touch-icon-152x152.png" /><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon-180x180.png" /> I still only get a "?" when bookmarking on an iPhone. When "place on home screen" it will show the correct icon but not for bookmarking/favorites. I tried both absolute and relative linking. If I follow the links when browsing on a computer and checking the source it will show the right images so they are not broken. I tried just adding this to a .html on a non prestashop site and there it works right away. I tried to add the images both to prestashop root and to the theme (Warehouse) root, still not showing more than "?" when bookmarking on iPhone. So I'm out of ideas. What am I doing wrong? Link to comment Share on other sites More sharing options...
Impretto Posted October 28, 2017 Share Posted October 28, 2017 same problem...UP Link to comment Share on other sites More sharing options...
andrew Posted November 8, 2017 Share Posted November 8, 2017 I also have the same problem It's OK when adding to the home screen, but not when adding to the safari favourites Link to comment Share on other sites More sharing options...
Scully Posted January 15, 2018 Share Posted January 15, 2018 Up again! Same problem with all prestashop up to the latest 1.6. versions. Link to comment Share on other sites More sharing options...
Gr3c0 Posted February 12, 2018 Share Posted February 12, 2018 Up Again! Same problem with 1.6.1.7 Any Idea? Thanks in advance, Link to comment Share on other sites More sharing options...
Scully Posted February 12, 2018 Share Posted February 12, 2018 I am guessing all PS 1.6. versions are affected by this problem. Or is there any known instance of a PS 1.6. running with the apple icon correctly showing up when saving to favorites? Link to comment Share on other sites More sharing options...
selectshop.at Posted February 12, 2018 Share Posted February 12, 2018 Tried also by this way ? https://developer.apple.com/library/content/documentation/AppleApplications/Reference/SafariWebContent/ConfiguringWebApplications/ConfiguringWebApplications.html Link to comment Share on other sites More sharing options...
Scully Posted February 12, 2018 Share Posted February 12, 2018 Thanks to selectshop for your reply. I tried every way one could imagine with little success. 1. The only way bringing it up to working is not installing prestashop on the root folder. If you have it running under www.example.com/shop/ it works. But it does not, when having it running in root. 2. Also I could never figure out why iOS / iPhones handle the icon differently depending if the shop link is saved to home screen or favorites. The apple documentation does not mention any different handling. 3. Since the apple icon works for different systems (CMS as well as shop systems), I wouln't say it's a bug within iOS, even though the issue exists under the above mentionned circumstances. Link to comment Share on other sites More sharing options...
Scully Posted February 12, 2018 Share Posted February 12, 2018 (edited) Based on above mentionned facts I finally found a solution which worked out: 1. Move everything that belongs to prestashop into a subfolder, for example /shop 2. Leave apple touch icons in root. 3. Create a new .htacess in your root folder (note that the old existing .htaccess has also moved to subdir) 4. Put the following into your .htaccess (change "shop" to desired subdirectory and "getyourshop.ch" with your own domain. # GetYourShop.ch # Have perstashop in a subfolder but access it from your root base path # make the changes to the file according to the instructions. # Do not change this line - RewriteEngine on RewriteEngine on # Change yourdomain.com to be your main domain. RewriteCond %{HTTP_HOST} ^(www.)?testyourshop.ch$ # Change 'subfolder' to be the folder you will use for your main domain. RewriteCond %{REQUEST_URI} !^/shop/ # Don't change this line. RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # Change 'subfolder' to be the folder you will use for your main domain. RewriteRule ^(.*)$ /shop/$1 # Change yourdomain.com to be your main domain again. # Change 'subfolder' to be the folder you will use for your main domain # followed by / then the main file for your site, index.php, index.html, etc. RewriteCond %{HTTP_HOST} ^(www.)?testyourshop.ch$ RewriteRule ^(/)?$ shop/index.php [L] 5. Take your iOS device and close the browser by swiping it to the top. Start browser and go into private mode. Visit your shop and add the link to your favorites. Btw - this solution does not need icons to be defined in the header.tpl. But leave a copy of all sorts of icons files in the corresponding sizes in the root direcotry. Edited February 12, 2018 by Scully (see edit history) Link to comment Share on other sites More sharing options...
MockoB Posted April 23, 2018 Share Posted April 23, 2018 Anyone tried this: http://angelwings.net/blog/create-home-screen-apple-touch-icons-for-ios-and-android/ Link to comment Share on other sites More sharing options...
Scully Posted April 24, 2018 Share Posted April 24, 2018 MockB you are only spamming. Your referenced page is just a totally useless page. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now