Jump to content

How to turn off sticky sections when in edit mode.

Recommended Posts

Hello, 

I am working on a site for a friend and am dreading that these cool sticky sections are going to cause her a headache when she goes to update information down the road. Does anyone know how to turn off sticky sections while in edit mode automatically? What would I need to add to the following code? Something like --->WHAT GOES HERE :not(.sqs-edit-mode-active) ?? but what would I target? I feel like a big dummy. 

#page .page-section {position: sticky!important; top: 0px!important}
html {scroll-behavior: smooth}

www.throwceramics.com
pw: cone5

Link to comment
  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Try something like this:

body:not(.sqs-edit-mode-active) {
  
#page .page-section {position: sticky!important; top: 0px!important;}
html {scroll-behavior: smooth;}

}

The top line should disable everything within the brackets when editing the page.

Please like and upvote if my comments were useful to you. Thanks!

Zygmunt Spray
Squarespace Website Designer
Contact me: https://squarefortytwo.com/ 
🔌Ghost Squarespace Plugins (Referral link)
Buy me a coffee

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.