Jump to content

How do i remove an entire section for Desktop?

Recommended Posts

  • Replies 3
  • Views 767
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

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 (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

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

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

Link to comment

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.

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.