Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Hiding section of Index page on desktop & mobile


alwalt

Question

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 post
  • Answers 1
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

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

Posted Images

1 answer to this question

Recommended Posts

  • 0
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 BaNgan from 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, 360 Degree Photo block, Seperator Block (SVG Shape divider for sections)
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 post

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...