Jump to content

How can I hide one of my sections, but keep it for later?

Recommended Posts

Site URL: https://bluebird-porcupine-yzdg.squarespace.com/home

Hello, I am currently using some code that allows me to hide specific sections on my site from mobile, but keeps it in edit mode so I can make changes accordingly. Here's the code:

/* SECTION VISIBLE ON DESKTOP ONLY */
@media only screen and (max-width: 767px) {
    body:not(.sqs-edit-mode) section[data-section-id="6034c2b9d8e50b04d5651ea6"] {
        display:none !important;
        visibility: hidden !important;
        opacity: 0 !important
    }

    body.sqs-edit-mode section[data-section-id="6034c2b9d8e50b04d5651ea6"] {
        opacity: .5 !important
    }
}

 

Is there a way to actually hide this section from both Desktop and Tablet and Mobile and keep in edit mode?

Sometimes I have some sections designed and built that I don't want to display on site right now nor delete. I can just then remove the code when I want to show that particular section at a later date. Please help!

Page - https://bluebird-porcupine-yzdg.squarespace.com/home

Pword - bluebird

 

Many thanks,

Best,

Faiz

Link to comment
  • Replies 2
  • Views 492
  • Created
  • Last Reply

You can remove media query code & use this new code

 body:not(.sqs-edit-mode) section[data-section-id="6034c2b9d8e50b04d5651ea6"] {
        display:none !important;
        visibility: hidden !important;
        opacity: 0 !important
    }

    body.sqs-edit-mode section[data-section-id="6034c2b9d8e50b04d5651ea6"] {
        opacity: .5 !important
    }

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.