Page 1 of 1

"Please rotate your phone"

Posted: Fri Jun 25, 2021 4:54 pm
by jerryco
Hi, I was wondering about something. Frankly I want to do nothing with breakpoints. It just *feels* wrong. And my website has a tiny font but on rotation it is still readable on a phone.

What I'm really looking for is simply a message that pops up when a user is on something else than a laptop/pc or tablet. The message is to simply ask the user to rotate their device.

I'm using a lot of [rz] tech but basically I'm looking for something that just gives the warning on page load and disappears when the screen has been rotated. My website is www.levensgenoot.nl.

Is there a solution for this?

Re: "Please rotate your phone"

Posted: Fri Jun 25, 2021 5:05 pm
by Pablo
The normal way to do this is by using breakpoints and the orientation. In that case, the browser will take care of the layout switch automatically without the need for a different page.
If you do not want to use breakpoints then you will need to implement a script yourself and use a redirect.

Re: "Please rotate your phone"

Posted: Fri Jun 25, 2021 5:10 pm
by crispy68
Frankly I want to do nothing with breakpoints.
Rembember Jerryco, breakpoints are your friends. :lol:

Re: "Please rotate your phone"

Posted: Fri Jun 25, 2021 5:25 pm
by jerryco
Okay, so it will have to be a custom script. Might head over to Fiverr. No breakpoints for me. Can anybody tell me if this custom script could interfere with the [rz] technology on my website?

Re: "Please rotate your phone"

Posted: Fri Jun 25, 2021 5:31 pm
by BaconFries
Can anybody tell me if this custom script could interfere with the [rz] technology on my website?
There's always the possibility of script conflicts and you will only know once implemented. And as [rz] is no longer with us to say so only you can decide to use custom scripts.