WebSite X5Help Center

 
Paul W.
Paul W.
User

Mobile friendly individual page redirection  en

Author: Paul W.
Visited 955, Followers 1, Shared 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.

Posted on the
2 ANSWERS - 1 CORRECT
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!

Read more
Posted on the from Claudio D.