oldegray Posted November 8, 2022 Share Posted November 8, 2022 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
Ziggy Posted November 8, 2022 Share Posted November 8, 2022 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 helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com 🔌 Ghost Squarespace Plugins (Referral link)📈 SEO Space (Referral link)⬛ SquareWebsites Plugins (Referral link)☕ Did I help? Buy me a coffee? Link to comment
oldegray Posted November 9, 2022 Author Share Posted November 9, 2022 @Ziggy thank you! Related question, do you know how to turn off one particular sticky section when the sticky section code is applied to all sections? Link to comment
Ziggy Posted November 9, 2022 Share Posted November 9, 2022 Not sure I fully understand that request, can you expand on that? Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com 🔌 Ghost Squarespace Plugins (Referral link)📈 SEO Space (Referral link)⬛ SquareWebsites Plugins (Referral link)☕ Did I help? Buy me a coffee? Link to comment
Ziggy Posted November 9, 2022 Share Posted November 9, 2022 Not sure I fully understand that request, can you expand on that? Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com 🔌 Ghost Squarespace Plugins (Referral link)📈 SEO Space (Referral link)⬛ SquareWebsites Plugins (Referral link)☕ Did I help? Buy me a coffee? Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment