alwalt Posted December 3, 2020 Share Posted December 3, 2020 Site URL: https://tuatara-cinnamon-hsra.squarespace.com/ Site password: Bellealliancedesign On the homepage, I am trying to hide the #desktop section on mobile and the #landing-page-mobile section (with the scrolling carousal), on desktop. The below code isn't working for me. Any advice? @media screen and (max-width: 640px) { div#desktop {visibility: hidden !important; display: none !important; }} @media screen and (min-width: 640px) { div#landing-page-mobile {visibility: hidden !important; display: none !important; }} Link to comment
Beyondspace Posted December 7, 2020 Share Posted December 7, 2020 On 12/4/2020 at 12:44 AM, alwalt said: Site URL: https://tuatara-cinnamon-hsra.squarespace.com/ Site password: Bellealliancedesign On the homepage, I am trying to hide the #desktop section on mobile and the #landing-page-mobile section (with the scrolling carousal), on desktop. The below code isn't working for me. Any advice? @media screen and (max-width: 640px) { div#desktop {visibility: hidden !important; display: none !important; }} @media screen and (min-width: 640px) { div#landing-page-mobile {visibility: hidden !important; display: none !important; }} Correct snippet should be @media screen and (max-width: 640px) { div#landing-page-desktop-section {visibility: hidden !important; display: none !important; }} @media screen and (min-width: 640px) { div#landing-page-mobile-section {visibility: hidden !important; display: none !important; }} BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - Lightbox captions only mode) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace 🚀 Learn how to rank new pages on Google in 48 hours! If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.