WebSite X5Help Center

 
Karen B.
Karen B.
User

Google Annotation For Re-directing to a mobile website  en

Auteur : Karen B.
Visité 1028, Followers 2, Partagé 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

Posté le
2 RéPONSES
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!

Lire plus
Posté le de Claudio D.
Karen B.
Karen B.
User
Auteur

Ok, Thank you anyway :)

Lire plus
Posté le de Karen B.