Jump to content

Is it possible to create mobile pages to auto-send viewers to, instead of standard/desktop pages?

Go to solution Solved by tuanphan,

Recommended Posts

I'm finding that my site looks as I want it in Desktop view, but doesn't translate to mobile view correctly. Whenever I make changes on the Mobile view, it makes the Desktop view look odd.

So, i'm wondering whether it's possible to create duplicates of the 'Desktop pages', append them with 'Mobile' or something and then anytime a viewer visits on a mobile device, they are automatically sent to the duplicate/mobile page instead? 

I realise it's going to mean twice the size of site, but if it enables me to have it exactly as I want it then i'm happy to spend the time building it. 

Of course, if there's a better way that i've totally overloooked - please let me know!

Link to comment
  • Replies 2
  • Views 120
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Solution

You can create a new mobile page, then add this code to desktop page, so it will redirects mobile users to mobile page.

<script type="text/javascript">
if (screen.width <= 767) {
document.location = "https://google.com";
}
</script>

replace google with mobile page url

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
1 hour ago, tuanphan said:

You can create a new mobile page, then add this code to desktop page, so it will redirects mobile users to mobile page.

<script type="text/javascript">
if (screen.width <= 767) {
document.location = "https://google.com";
}
</script>

replace google with mobile page url

Thanks very much!

Link to comment

Create an account or sign in to comment

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


×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.