Google Annotation For Re-directing to a mobile website
Autor: Karen B.Hello,
I have created a mobile version of one of my websites using a mobile template from Xtuts and need to know if Google's suggested code for inserting below the head tags (in both version of the site) is all I need to to to implement this? (not including setting up on the server side of things) The mobile site will be on a subdomain.
Google's code is like this:
On the desktop page (http://www.example.com/page-1), add:
<link rel="alternate" media="only screen and (max-width: 640px)" href="http://m.example.com/page-1" >
and on the mobile page (http://m.example.com/page-1), the required annotation should be:
<link rel="canonical" href="http://www.example.com/page-1" >
I am also curious as to whether I need a seperate script to detect screen size or will the above do it all?
Any help would be appreciated
Thank you
Karen
Hello Karen,
Unfortunately I cannot help you with the use of custom code, but if you have any doubts or issues on how to add them in the pages you made with WebSite X5 you can ask me.
Generally speaking since the functions do not depend on WebSite X5, you can search useful information about the custom code with search engines like google or wait until someone on the community of Answers can help you.
Many thanks!
Autor
Ok, Thank you anyway :)