BlayneG87 Posted December 4, 2022 Share Posted December 4, 2022 Hello! I've tried just about every sticky code I could find to get this section to stick but nothing has been working and I can't figure out why. https://pelican-mayflower-36wy.squarespace.com Password: Lincoln22 On the "About Us" section, I'd like the 3rd section with the horizontal text box to stick when scrolling (these will be anchor links for each section down the page eventually). This is the current code using the section id: [data-section-id="638be36f99d1a11c19df1661"] { position: sticky; top: 0px; position: -webkit-sticky; z-index: 9999; } I've tried adding !important, I've tried using the text block id, I even tried adding a div code to identify the block, I just can't seem to get it to stick. Any help would be appreciated! Thank you! Blayne Link to comment
paul2009 Posted December 4, 2022 Share Posted December 4, 2022 (edited) 6 minutes ago, BlayneG87 said: I've tried just about every sticky code I could find to get this section to stick but nothing has been working and I can't figure out why. The sticky element appears to be working for me. Edited December 4, 2022 by paul2009 About me: I've been a SQSP User for 18 yrs. I was invited to join the Circle when it launched in 2016. I have been a Circle Leader since 2017. I don't work for Squarespace. I value honesty, transparency, diversity and good design ♥. Work: I founded and run SF.DIGITAL, building Squarespace Extensions to supercharge your commerce website. Content: Views and opinions are my own. Links in my posts may refer to SF.DIGITAL products or may be affiliate links. Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee is optional. Link to comment
BlayneG87 Posted December 4, 2022 Author Share Posted December 4, 2022 @paul2009 so weird! That is not happening for me. I even tried clearing my cache & cookies and restarting my browser. Just curious what browser you are using? https://www.loom.com/share/ab40727ff75d4b27ad1bfae3b73338e6 Link to comment
paul2009 Posted December 4, 2022 Share Posted December 4, 2022 24 minutes ago, BlayneG87 said: Just curious what browser you are using? It is working on the latest Chrome, Firefox and Safari for me. About me: I've been a SQSP User for 18 yrs. I was invited to join the Circle when it launched in 2016. I have been a Circle Leader since 2017. I don't work for Squarespace. I value honesty, transparency, diversity and good design ♥. Work: I founded and run SF.DIGITAL, building Squarespace Extensions to supercharge your commerce website. Content: Views and opinions are my own. Links in my posts may refer to SF.DIGITAL products or may be affiliate links. Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee is optional. Link to comment
creedon Posted December 4, 2022 Share Posted December 4, 2022 Looks good to me as well. Viewed on macOS/Chrome. 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
creedon Posted December 4, 2022 Share Posted December 4, 2022 Have you tried looking at the page in private browsing? What happens? What OS and browser are you using? You also might try rearranging some of the parameters. [data-section-id="638be36f99d1a11c19df1661"] { position : -webkit-sticky; position : sticky; top : 0px; z-index : 9999; } daniellenoakes 1 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
BlayneG87 Posted December 4, 2022 Author Share Posted December 4, 2022 @creedon thanks for checking and letting me know it works for you as well. I'm on macOS/chrome as well. I tried incognito and still wasn't able to see the section sticking. Maybe it's some glitch in Squarespace? Not sure why I would be unable to see it but it works for others who are not actively editing in the program. Link to comment
creedon Posted December 4, 2022 Share Posted December 4, 2022 (edited) Have you updated Chrome to the latest? Edited August 29, 2023 by creedon 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
BlayneG87 Posted December 4, 2022 Author Share Posted December 4, 2022 @creedon Just checked and my chrome is up to date. 🙂 Link to comment
EyeCandySee Posted August 29, 2023 Share Posted August 29, 2023 I'm having the same problem. The section I'm trying to stick is a classic section (because of the FE gallery block bug that prevents resizing). It's the only classic section amongst a sea of FE. Could this be my issue? Thanks! Link to comment
creedon Posted August 29, 2023 Share Posted August 29, 2023 4 hours ago, EyeCandySee said: I'm having the same problem. It's the only classic section amongst a sea of FE. Please post the URL for a page on your site where we can see your issue. A link to the backend of the your site won’t work for us, i.e. a url that contains /config/. Please set up a site-wide password, if your site is not public and you've not already done so. Post the password here. Adding a site-wide password does not allow anyone to alter your site. It only allows those with the password to see your site. Please read the site-wide password and how to share a link documentation to understand how they work. We can then take a look at your issue. You may find How to post a forum question post useful. 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
daniellenoakes Posted December 7, 2023 Share Posted December 7, 2023 On 12/4/2022 at 9:59 PM, creedon said: Have you tried looking at the page in private browsing? What happens? What OS and browser are you using? You also might try rearranging some of the parameters. [data-section-id="638be36f99d1a11c19df1661"] { position : -webkit-sticky; position : sticky; top : 0px; z-index : 9999; } I'm so annoyed i had this code working perfectly, but i had to remove it to edit something then forgot to put it back, now i cant get it to work again!!! please could you help? all the layering is messed up on scroll www.annajonesbridal.co.uk/home-new www.annajonesbridal.co.uk/weddings Link to comment
daniellenoakes Posted December 8, 2023 Share Posted December 8, 2023 i used this adapted code instead from @inside_the_square and it seems to be working now: section id taken from the section you want to be sticky, so the effect is that the next section underneath scrolls / overlaps the first section section[data-section-id="6553bddea684286457fd7144"].page-section { position: sticky!important; top: 0px!important; z-index:0; } tuanphan 1 Link to comment
daniellenoakes Posted December 14, 2023 Share Posted December 14, 2023 On 12/8/2023 at 2:30 PM, daniellenoakes said: i used this adapted code instead from @inside_the_square and it seems to be working now: section id taken from the section you want to be sticky, so the effect is that the next section underneath scrolls / overlaps the first section section[data-section-id="6553bddea684286457fd7144"].page-section { position: sticky!important; top: 0px!important; z-index:0; } Hey @tuanphan This code appears to glitch in safari, is there a reason do you think for this ? Link to comment
tuanphan Posted December 16, 2023 Share Posted December 16, 2023 On 12/14/2023 at 6:22 PM, daniellenoakes said: Hey @tuanphan This code appears to glitch in safari, is there a reason do you think for this ? Try this section[data-section-id="6553bddea684286457fd7144"].page-section { position: sticky!important; top: 0px!important; z-index:0; position: -webkit-sticky; } 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
daniellenoakes Posted December 19, 2023 Share Posted December 19, 2023 On 12/16/2023 at 3:40 AM, tuanphan said: Try this section[data-section-id="6553bddea684286457fd7144"].page-section { position: sticky!important; top: 0px!important; z-index:0; position: -webkit-sticky; } thanks @tuanphan, however it's still glitching out on safari even with that added in! 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