WebSite X5Help Center

 
Paul W.
Paul W.
User

Mobile friendly individual page redirection  en

Autore: Paul W.
Visite 1055, Followers 1, Condiviso 0  

In order to be Google "mobile friendly" I included the code

  <script type="text/javascript"> if (screen.width <=648) {document.location = "/m/"; } </script>

in the expert section advanced secting  - before closing the head. This works and traffic from smaller devices is sent to jpw.ca/m where a mobile version exists.

Question:

How do I create instuctions that can enable direction to individual sites in the jpw.ca/m directory rather than always to jpw.ca? 

Help.

Postato il
2 RISPOSTE - 1 CORRETTO
Incomedia
Claudio D.
Incomedia

Hello Paul,

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 rask 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!

Leggi di più
Postato il da Claudio D.