Daman Posted November 29, 2020 Share Posted November 29, 2020 (edited) Site URL: https://halibut-finch-9bdl.squarespace.com/ Site Password: ghosts I have a website I'm working on and while the home page looks great on desktop, I'd love to create a different page to use as the home page on mobile only. This is my home page https://halibut-finch-9bdl.squarespace.com/ And this is the page I'd like to use as the home page on mobile specifically. https://halibut-finch-9bdl.squarespace.com/home-2 Any help would be greatly appreciated! Thanks Also, I've tried the code below, and keep getting a syntax error when I try putting in the URL. @media (max-width:640px){#your-desktop-page-URL {display:none!important}} @media (min-width:640px){#your-mobile-page-URL{display:none!important}} Edited November 30, 2020 by Daman Link to comment
tuanphan Posted December 5, 2020 Share Posted December 5, 2020 If you use Business Plan, you can add JS code to redirect to new mobile page on mobile If you use Personal Plan, you can add more sections on current page, then use CSS to show these sections on mobile only & hide above sections. 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
mg1995 Posted March 1, 2021 Share Posted March 1, 2021 @tuanphan Hi there! Running into the same issue. Website homepage is https://www.lindseysimcik.co/ but would love for the mobile homepage to be https://www.lindseysimcik.co/mobile! Let me know if you can help. Have tried all the code above but still sticky 😕 Link to comment
tuanphan Posted March 3, 2021 Share Posted March 3, 2021 On 3/1/2021 at 8:28 AM, mg1995 said: @tuanphan Hi there! Running into the same issue. Website homepage is https://www.lindseysimcik.co/ but would love for the mobile homepage to be https://www.lindseysimcik.co/mobile! Let me know if you can help. Have tried all the code above but still sticky 😕 Add to Homepage Header <script type="text/javascript"> <!-- if (screen.width <= 640) { document.location = "/mobile"; } //--> </script> 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
GregLassale Posted April 29, 2021 Share Posted April 29, 2021 (edited) On 3/3/2021 at 3:01 AM, tuanphan said: Add to Homepage Header <script type="text/javascript"> <!-- if (screen.width <= 640) { document.location = "/mobile"; } //--> </script> Is this script supposed to work on all templates? It's not working on Brine. I'm trying to show "/landing-banner" on large screens and "/landing-banner-mobile" on mobile. Thanks. Edited April 29, 2021 by GregLassale Link to comment
GregLassale Posted April 29, 2021 Share Posted April 29, 2021 (edited) I also tried this CSS with different widths but no dice 😞 @media only screen and (max-width: 2388) {#landing-banner {display: none;} } @media only screen and (min-width: 2389) {#landing-banner-mobile {display: none;} } Edited April 29, 2021 by GregLassale Link to comment
Vallis Posted March 14, 2022 Share Posted March 14, 2022 Hi Greg, How did you solve this issue? I still can't seem to get it right. Link to comment
tuanphan Posted March 15, 2022 Share Posted March 15, 2022 16 hours ago, Vallis said: Hi Greg, How did you solve this issue? I still can't seem to get it right. What is your site 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