On iOS devices using the Safari browser, you are able to add a shortcut to your home screen to any site online. By default, these shortcuts will display as a screenshot of the website. This article will explain how to set an icon to your website so that when it is saved onto iOS home screens this will display instead.
Creating And Uploading Your Icon
The image for the shortcut must be 150x150 pixels in size. This will allow it to used across all iOS devices - those with regular displays and retina displays too!
Additionally, in order for the icon to work correctly, it must follow the following specifications:
- Must be saved in .png format
- Must be titled apple-touch-icon
Once you have created your icon, you can then upload it into the files area within your Create account (not the images area).
To upload the icon:
- Log into your Create account
- Click 'Content' from the top menu
- Click 'Files' from the left-hand menu
- Click the 'Add File' button
- Follow the steps to upload your image
Adding The Icon To Your Site
Once you've uploaded the icon, you will need to add a small piece of code to the Custom <HEAD> of the page you would like to use the icon for - if you want to use it for any page that a shortcut is created for, you'll need to paste the code into each page individually. The code is below:
<link rel="apple-touch-icon" href="/sitefiles/12345/678/90/apple-touch-icon.png">
The informational following the href is the file path for the file you just uploaded. This must be the file unique to your site.
To get the file path for the icon that you've uploaded, simply click the 'link' icon on the 'Files' section.
This will then displayed the URL for the icon.
Copy and paste this file path exactly as it appears into the code below.
<link rel="apple-touch-icon" href="INSERT_FILE_PATH_HERE">
To then add this code to your custom <HEAD>:
- Click 'Content' from the top menu
- Click the options icon beside the page you would like to add the icon for
- Click the 'Meta Info' tab
- Paste the code into the 'Custom <HEAD>' field
- Save changes and repeat as necessary
- You will need to publish your site for the changes to apply
Testing The Icon
It can take several hours for the icon to update once your site is published. When you're ready to test, simply follow the steps below on your iOS-enabled device (such as an iPad or iPhone):
- On your iOS device, open your Safari browser and go to the page on your site that you would like to make a shortcut for
- Click the share icon in the browser
- Select the option 'Add to Home Screen'
- On the 'Add to Home' page you should be able to see the icon you uploaded on the left
If you do not see the icon you uploaded, please double-check that you have followed the steps above, including formatting the file as required.
No comments:
Post a Comment