Jump to content

Change home page on mobile

Recommended Posts

Site URL: https://f22-photography.co.uk/

I used to have a piece of custom-css which allowed my website to chang my landing page on mobile devices from the one on PC/laptops.

Today my website stopped working on mobiles and squarespace online chat told me the problem was my custom-css even though this custom code had been in years.

Does anyone know how some more up to date custom code i can use to help me change my landing page on mobiles ?

 

This was the code i used to use which worked perfectly up to now :(

<script>
if (screen.width<760) {window.location="/portfolio";}
</script>

 

 

Link to comment
  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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.