Hi all,
Is there a way to redirect a url to two seperate pages depending on the device?
For example I have a contact us URL and I want the user to go to specific pages depending on if they are on a mobile device or computer.
Thanks
Hi,
You could play with the built-in Enfold function isMobile(), try adding this code in js/avia.js, line 1305 (inside function run($this){ … } ):
if(isMobile()){
window.location = "http://google.com";
}
Change the http://google.com to the desired URL (for mobile website), i tested locally and it works.
Regards,
Josue
Thanks Josue,
Sorry if I did not explain properly.
I have a contact us page and I would like people to go to specific pages depending on the device they are on. For example:
If i visit the contact us page using my phone – /contact-us
If i visit the contact us page on my computer – /contactus
So two specific pages for one url depending on the platform they use. Hope that clears it up.
Thanks
Hi italiatiles,
That is a question better asked on somewhere like StackOverflow: http://stackoverflow.com/ .
Regards,
Devin