x

How To Add your Website to your iPhone homepage (Step-by-Step Guide)

Hi Weebly users,

Today I wanted to teach you guys a neat trick that enables you to give your website the look of an app on your iPhone homescreen. Take a look at the 'VandaagApple'-app on my homescreen, which is actually my own Weebly Website:imageYeah, that looks neat, huh! To accomplish what I did there, you'll have to walk through a few steps.

1. Create your app icon

First, you must create an app icon. That icon can be any size larger than 114px in both width and height, as it will be automatically resized. The icon should be square, as iOS rounds it for you. Your app icon should resemble your website logo, so that users can easily find it. 

2. Upload your app icon

After you've created an icon, you'll have to upload your icon. You can upload it to a hidden page on your website, but you could also upload it to a public dropbox folder or something. Make sure it'll stay, and not be automatically deleted after a while, as it's the resource for the image. After uploading, copy the image url (which should end in .jpg or .png) and move to step three.

3. Open the weebly editor and follow the steps

imageAfter you've opened your website in the editor, move to the 'Settings' tab and open the 'SEO' menu from the vertical menu at the left. Scroll down to the header code and enter the following code:

<link rel="apple-touch-icon" href="YOUR IMAGE LINK GOES HERE"/>
<link rel="apple-touch-icon" sizes="72x72" href="YOUR IMAGE LINK GOES HERE"/>
<link rel="apple-touch-icon" sizes="114x114" href="YOUR IMAGE LINK GOES HERE"/> 

Replace the green text with the link to the image you've created in step one and two. For clarification: the different <link> attributes are there for different icons, as iOS is being used by different sized devices with different display density. 

Step 4: publish your website

After you've added the code to your website, you're ready to publish it. First, hit the 'Save' button in the lower right corner in the Weebly editor. 

Step 5: Add your website to your homepage

Last but not least, you'll have to try and see how your icon looks on your iPhone or iPad. You can add a website to your homepage by opening Safari, opening the desired website and hit the arrow in the bottom center of the screen. Hit 'add to homescreen' to move further. Now, give your website-app the desired name and hit the button in the upper right corner of the screen to add it to your homescreen. When you've done everything as described above, you should be able to see your self-made icon shining on your homepage. 

Bonus: give your website an app-like appearance

Now you've got yourself an app icon for your website, you only have to let it look like a real app. Add the following code below the code you've just entered in the Weebly editor to achieve this.

<meta name="apple-mobile-web-app-capable" content="yes">

This code removes the top and bottom bar, so you'll only see your website content. Looks great!

image

8,577 Views
Message 1 of 17
Report
16 REPLIES 16
Square

Thanks for sharing, @JesseWarmerdam! I'm sure our users will appreciate offering this with their sites.

8,573 Views
Message 2 of 17
Report

This is fantastic!  It worked really well for my site. Much appreciated. 

8,512 Views
Message 3 of 17
Report

Has this process continued to work for you?

I have placed all of this in Settings/SEO/Header and none of the changes work. Thr website view still shows the address bar, as well as the navigation bar, in the browser.

Also, no image appears. I have tried to upload it in weebly using the THEME/CSS Edit section... as well as linking it to my DropBox. Each one shows the image in the browser. while testing the links...yet the browser does not show any icon when adding the Home Scree. The image is 150x150 w/ 300DPI.

ANY HELP is greatly appreciated.

7,796 Views
Message 8 of 17
Report

Have you found a soultion? I have attempted everything and nothing is working. Does this take time to take efeect like 2 days? or once you upload the images and cose it works immeadtily? 

7,301 Views
Message 8 of 17
Report

See my other response below. Got it working perfectly.

6,998 Views
Message 8 of 17
Report

Each time you make a change, you need to clear your history and website data. You also need to delete any existing web app icon from your homescreen.

6,999 Views
Message 8 of 17
Report

This did work for me! But whenever users go to a different page in my website, they get redirected back to safari. Is there a way to stop that from happening? Is there a way to make the entire website work through that one link on the home screen, sort of like an app?

6,345 Views
Message 9 of 17
Report

Very useful information! it would be great to be able to create a button named "Add to homescreen" place on the home page of the website (now become a Webapp thanks to you Smiley Wink ). 

4,352 Views
Message 10 of 17
Report

How can I create the icon also for Android devices? Thanks in advance for your replies...

4,171 Views
Message 18 of 17
Report

Is there currently any solution for this in the new square website editor ?

I've tried everything vias the 'Add custom header code' and nothing works. Keeps on telling me it's ivalid HTML.

1,932 Views
Message 18 of 17
Report
Square

Can you paste in the exact code you are trying to add, @Loyalandtrue77?

1,928 Views
Message 18 of 17
Report

Hi Adam. Below is one example of what I've been trying. I have zero knowledge of code other than what I've been copying from around the internet. I've uploaded my logo to a hidden page on my website but haven't sized it correctly yet. Just wanted to see that it would save first. The website isn't published at the moment.

<link rel="apple-touch-icon" href="https://sandbox.square.online/uploads/b/9e33e500-3138-11eb-bd71-f181634f1b12/apple-touch-icon.png"/>

Always says Invalid HTML when I tray saving.

1,925 Views
Message 18 of 17
Report
Square

Hmm... that seems fine. Try changing the very end from:

"/>

to:

"></link>

1,920 Views
Message 18 of 17
Report

I tried exactly as you suggested but it didn't work  i'm afraid. Still getting the dreaded 'Invalid HTML detected'.

1,914 Views
Message 18 of 17
Report
Square

Ahh, I see - we limit this to only script, noscript, and meta tags at the moment. I'm not sure if there's an easy way to add this right now, @Loyalandtrue77. Smiley Sad

1,911 Views
Message 18 of 17
Report

That's ok Adam, thanks for trying to help me anyway, I appreciate that.

It's something that wil hopefully be improved upon in time.

1,909 Views
Message 18 of 17
Report