Jump to content

How do i remove an entire section for Desktop?

Recommended Posts

Posted

I have an image optimized for mobile viewing, however I would like it removed for desktop view. I've attached the image of the section I'd like removed. Could anyone please help me? Thank you.

Capture.PNG

  • Replies 3
  • Views 859
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Posted
On 12/29/2021 at 10:18 PM, Braydenn said:

I have an image optimized for mobile viewing, however I would like it removed for desktop view. I've attached the image of the section I'd like removed. Could anyone please help me? Thank you.

Capture.PNG

I think we can implement the Css code with the media query for desktop:

@media only screen and (min-width: 1025px) {
  /*your sectionId {
	display:none;
}*/
}

Hope that it make sense

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

Posted

Hi! Thanks for replying to me. However, after adding the code and the section ID into the code, it didn't work. The image is still visible on Desktop view. 

Here's the exact code I've used:

@media only screen and (min-width: 1025px) {
/61cdc280503cad145085f1c1 {
    display:none;
}*/
}

Please help me to check if I've made a mistake. Thank you so so much, have a happy New Year!!

Posted

It should be something like...

@media only screen and ( min-width : 1025px ) {

  [data-section-id="61cdc280503cad145085f1c1"] {
  
    display : none;
    
    }

  }

Without being able to see your site we are unable to confirm the code works.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

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.