Overview
This article guides you through the process of creating a custom pinned Tile that links to your website. This helps you control your brand when users pin your site to their Windows Phone Start screen. This works on phones running Windows Phone 7 and Windows Phone 8.
Step 1: Create an image to use as the pinned Tile
First, you’ll need a square image to represent your website and use as a pinned Tile on the phone. Windows Phone 8 devices support high-definition screens up to 768 pixels wide, so we recommend using an image that’s 768 x 768 pixels to get the highest quality on Windows Phone 8. But, you can use a lower resolution image if you choose to.
Tip: If you make your image background transparent, the theme color that the user has set for their phone shows through as the background for your image. This can provide a nice blend of the user’s theme preference with the Tile image you’ve chosen to use.
The following image shows a simple Tile image with the number “1” and a transparent background.
Step 2: Add a hidden overlay on your website to trigger the Tile
Next, you want to add a layer to any location where you want to prompt the user to pin the Tile to their Start screen. For example, you can set this on the home page of your website. To do this, you add a fixed-position
You can add some text or a graphic beneath the overlay that indicates to the user that they need to use the menu in Internet Explorer for Windows Phone to select Pin to Start. You can change the color property to any color if you use text.
Here’s an example:
Add text/graphic asking user to pin to start using the menu...
Step 3: Add a link to display the overlay
Next, you want to add a link to display the overlay that you created in step 2, which initially is hidden. In the following code example, we use a simple text link, but you can use any clickable element.
Pin this site to your start screen
Here’s what the example looks like on the phone:
Tip: Because Pin to Start functionality is only available on Windows Phone, you should be sure to detect Windows Phone [link to related blog post on UA detection] so you display this link only to one of these devices and not to any other kind of smartphone. You might also want to provide a way for users to hide the link in case they have already pinned your site to their Start screen, or if they just don’t want to see it anymore.
Step 4: Add JavaScript to toggle the overlay
You can add some simple JavaScript to the
Now, if you tap the link you created in step 3 you see the overlay. For example:
Step 5: Try out your new custom Tile
That’s it! Once the overlay is shown, tap the menu bar (‘…’) and then Pin to Start to add your custom Tile to your own Start screen.
Et Voilà!