Nota: Sebbene le nostre guide più popolari siano state tradotte in italiano, alcune guide sono disponibili solo in inglese.
Adding a site icon on iOS devices

Quando crei un'icona Apple Touch, i visitatori possono aggiungere il tuo sito ai segnalibri sui loro dispositivi iOS (iPhone, iPad o iPod). Il segnalibro sarà un'icona in linea con altre app o segnalibri su una schermata principale.

To review Apple's image guidelines for these icons, visit their image guidelines page.

The solution in this guide includes injecting code. Code Injection is a Premium feature available in the current Website Business plan and higher:

  • Available in: All Business and Commerce plans
  • Available in: Legacy Personal plan (no longer available for new subscriptions)
  • Not available in: Current Personal plan
  • Trial: You can use Code Injection during a trial.

To learn more, visit Premium features.

Step 1 - Upload the icon image

Create the icon for the site. The icon must be a .png file and can't be transparent. We recommend using the same design as your favicon or site logo for a consistent look.

After creating the image, open the page editor for any Regular Page on your site, and enter text that will act as a link. Highlight the text and click the Link icon in the Text Toolbar.

text-link.png

Si aprirà l'editor di link. Clicca sulla scheda File , quindi clicca su Aggiungi file per caricare il file immagine dell'icona di tocco. Clicca su Aggiungi link per inserire il link.

file-link.png

Step 2 - Get the icon image URL

Click the linked text again, and copy the file URL. The file URL looks like this:

/s/file-name.extension

file_URL.png

Step 3 - Add Code Injection

In the Home Menu, click Settings, click Advanced, then click Code Injection.

CodeInjection.png

Copy and paste the following code into the Header Code Injection box:

<link rel="apple-touch-icon" href="/s/file-name.extension">

Replace /s/file-name.extension with the URL you copied for your icon file.

code_injection_panel.png

Click Save.

Step 4 - View your touch icon

Visit your site using your iOS device. Use the Share option to add the site to your home screen.  It will look something like this:

Note: This third-party service and custom code falls outside the scope of Squarespace support. We highly recommend that you have coding knowledge before adding code to Code Injection. While we can’t offer more help on this topic, there are many resources available that can point you in the right direction:

Questo articolo ti è stato utile?
Utenti che ritengono sia utile: 18 su 28