Jump to content

Can I set an alternate homepage for Mobile & desktop?

Recommended Posts

Hi,

I've been googling and searching these forums for a way to set up different landing pages for mobile and desktop, but can't see to find a code that works. I was wondering if someone could help me please?

I want to keep my website as it is on desktop but have the landing page set to https://www.labellesaison.co.uk/shop 

for customers visiting on a mobile. What do I need to do for this?

 

Thank you 🙂

Link to comment
  • Replies 3
  • Views 561
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

On 4/16/2023 at 7:17 PM, labellesaisonshop said:

Thanks for yor reply! I'm not quite sure what you mean though. I spoke to someone on support who said that it was possible but I'd need to add a code. I've seen quite a lot of posts on here too (though none of the codes work)

Add this code to Page Header to redirect users to new page on mobile

<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

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.