Redirect on mobile but not on tablet
-
Hello!
i have some problems with this specific site.
The concept of this page is already a bit tricky and i manage to handle it on mobile but i dont want to redirect it to tablet, as the desktop/original version works better with tablet in horizontal view.. Better said, i dont know exactly how to manage the tablet problem as vertical view would be better in mobile page look..I tried to implement a please rotate js but i didnt managed to get it work.
I tried a code without redirection tool and it worked but the part, in which the tablet redirection is disabled didnt worked..The code was:
<script> if( /Android|webOS|iPhone|iPod|BlackBerry|IEMobile/i.test(navigator.userAgent) ) { if(window.location.hash == "#desktop"){ // Stay on desktop website } else { window.location = "https://adictivedesignbaustelle.de/m-aesthetik/"; } } </script>
Would be great if someone can help me here as quick as possible, as i already work way to long on this website.
Thanks a lot!
The page I need help with: [log in to see the link]
- The topic ‘Redirect on mobile but not on tablet’ is closed to new replies.