Jump to content

Hiding section of Index page on desktop & mobile

Recommended Posts

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
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

image.png.77959bba349ff1812272168f85f66cb6.png

@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; }}

 

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. 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.