Streaming live at 10am (PST)

Disable portrait view when switching orientation on tablets

Hi there, I have seem on some sites where they area able to show a media query requesting the user changes their tablet from portrait to landscape to view the site. Does anyone know how to do this?

Many thanks in advance.

All you’d have to do is hide everything (that you want hidden) from portrait view using the settings panel.

Then put in a div that is ONLY visible on mobile portrait view, make it 100vh, 100vw, and place your message in there for the user to rotate their phone over. :smile:

Interested to see what you’re doing that you need this :smiley: Let us know!

Waldo :smile:

Thanks Waldo, what about portrait tablets as well? (Landscape tablets are ok)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.