Jump to content

Having tow homepages: One for computer, one for mobile

Recommended Posts

  • Replies 5
  • Views 274
  • Created
  • Last Reply

Top Posters In This Topic

Hi, Thanks for your answer:

Attached is a photo with the two pages I have already made: 

<< [ this is the main one that you see on the computer.]
<< mobile [ this would be the one for the phone].

This way it works for you or if not what do you mean by two sections?

Captura de pantalla 2022-06-22 a las 11.10.28.png

Link to comment

Two sections on same page

If you create 2 pages, add this code to >> Page Header

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

replace google.com 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

Hello, Thank you very much for your reply.

So, with two pages it works too, right? I can change the page header of the mobile or the one I make now when I put the code is the definitive one. 

Where do I have to put the code exactly?

Thank you 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.