WebSite X5Help Center

 
Huveneers A.
Huveneers A.
User

Switch to Mobile or desktop website  en

Author: Huveneers A.
Visited 1099, Followers 2, Shared 0  

Can you automatic select a different website depending of the browsing device? For example when an android brower connects to the website select the website with the mobile layout

Posted on the
3 ANSWERS - 1 CORRECT
Samuel V.
Samuel V.
User

Hello,

You could do this using JavaScript. This one has to be inserted before the </head> tag.


EDIT: the script is in the text file attached as the editor replaces the content 



You could do the same using PHP or Apache redirects.

Hope this can help Smile

Read more
Posted on the from Samuel V.
Samuel V.
Samuel V.
User

The code

Read more
Posted on the from Samuel V.
Huveneers A.
Huveneers A.
User
Author

Thanks for this info. I will try that

Read more
Posted on the from Huveneers A.