Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

How to lock screen orientation with JS?



Site URL: https://jordandixon.co

Here my site: https://jordandixon.co
The issue is on mobile.
I'd like to lock the screen orientation to portrait. 
If you turn your phone sideways on my current mobile site it looks bad. 

Any tips on how to do this with Javascript? I know there is an API for this but I'm unsure how to integrate it within Squarespace. I would appreciate any insight at all if anyone has come up with a similar solution.

Thanks in advance!

Link to post
  • Answers 1
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

1 answer to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

  • Create New...