labellesaisonshop Posted April 16, 2023 Share Posted April 16, 2023 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
derricksrandomviews Posted April 16, 2023 Share Posted April 16, 2023 You can't, only if you market it that way. There is no way to have the site itself separate the viewers other than a landing page that has two buttons, one says desktop and one says mobile. The same technique many use for a dual language site. Link to comment
labellesaisonshop Posted April 16, 2023 Author Share Posted April 16, 2023 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) Link to comment
tuanphan Posted April 18, 2023 Share Posted April 18, 2023 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment