WebSite X5Help Center

 
Karen B.
Karen B.
User

Google Annotation For Re-directing to a mobile website  en

Author: Karen B.
Visited 873, Followers 2, Shared 0  

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

Posted on the
2 ANSWERS
Incomedia
Claudio D.
Incomedia

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!

Read more
Posted on the from Claudio D.
Karen B.
Karen B.
User
Author

Ok, Thank you anyway :)

Read more
Posted on the from Karen B.