Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows 8 prepare site for pinning

I would like to prepare my site for windows 8 pinning and have been reading some documentation on how to add the various images and could figure out that it could be done by using metadata and according to instructions and help on this site I could actually build the following meta tags but i couldn't figure out where I can call the browserdetect.xml file assuming I have the file located at mysitee.com/upload/win8/browserdetetct.xml and the images in the same folder

<meta name="application-name" content="MySite"/>
<meta name="msapplication-TileColor" content="#2d90c6"/>
<meta name="msapplication-TileColor" content="#2d90c6"/>
<meta name="msapplication-square70x70logo" content="http://placehold.it/70x70/000000/ffffff&text=MySite"/>
<meta name="msapplication-square150x150logo" content="http://placehold.it/150x150/000000/ffffff&text=MySite"/>
<meta name="msapplication-wide310x150logo" content="http://placehold.it/310x150/000000/ffffff&text=MySite"/>
<meta name="msapplication-square310x310logo" content="http://placehold.it/310x310/000000/ffffff&text=MySite"/>

Any help please ?

like image 992
digitup Avatar asked Jul 04 '13 15:07

digitup


People also ask

How do I pin a website to my taskbar in Windows 8?

The process for this is fairly simple: Just drag the website's tab or its icon from the address bar to your taskbar and it's pinned.

How do I pin a Web page to my screen?

Navigate to the website you want to pin. Click the three vertical dots in the top right of Chrome, hover your mouse over “More Tools,” and click “Create Shortcut.” In the pop-up menu, change the name of the shortcut if desired, and click “Create.” This will automatically create an icon on your Windows desktop.

How do I get rid of pinned tiles in Windows 8?

Right-click the tile you want to delete. This adds a check mark to the tile and displays the options bar at the bottom of the screen. Click or tap Unpin from Start.


1 Answers

Update: Microsoft Edge on Windows 10 and Windows 10 Mobile now only uses /browserconfig.xml, so stop including meta tags.

I see that Microsoft has — a bit prematurley — updated their wizard to Windows 8.1. Which is not backwards compatible with Windows 8.

What you need (in addition to my comments in the other post) is the older code with a 144x144 px image:

<meta name="msapplication-TileImage" content="/tileimage-144.png" />

That will work in Internet Explorer 10 on Windows 8 in conjunction with the two backwards compatible tags you already have:

<meta name="application-name" content="MySite" />
<meta name="msapplication-TileColor" content="#2d90c6" />

Note that you should not use application-name unless your site is actually a web application. (Per the HTML5 specs.)

You can test the Windows 8.1 (Internet Explore 11, actually) stuff in a virtual machine. Microsoft is handing them out for free over at http://www.modern.ie/en-US/virtualization-tools#downloads

Further enhancements: Internet Explore 11 does not actually need the tags to be present in the document. so you can save users who do not intend to pin your site the bandwidth (thus gaining performance) by including a browserconfig.xml in your root (eg. example.com/browserconfig.xml). IE 11 will read this file when a user tries to pin a site and load the resources needed from there instead of from the meta tags. So what you do is include the two/three tags IE 10 needs, and put the new IE 11 tags in your browser config file. Read up on http://msdn.microsoft.com/en-us/library/ie/hh772707%28v=vs.85%29.aspx (ignore the bits where it tells you to include a meta tag to load the config file. As long as the file name is browserconfig.xml and it is on your root, it will automagically work.)

Making it all darn perfect: Windows 8 requires no padding in their image, only a transparent background. Windows 8.1, however, expect ⅕ of the tile images to be left transparent for padding. You will stick out like a sore thumb amongst the other applications if you do not pay attention to the padding.

Live example: I implemented this on my own site over at Slight Future if you want an working (as of the Windows 8.1 Preview 1) example.

Final thoughts: Why Microsoft have to introduce something new for every single version of Internet Explorer / Windows, I can’t understand. Nothing is backwards compatible. For IE 9 / 10 and pinned sites on the Windows 7 / 8 desktop taskbar, you need a favicon in four different sizes.

like image 83
Daniel Avatar answered Oct 05 '22 05:10

Daniel