pilotjerry Posted April 10 Share Posted April 10 I created an anchor link on one of my pages. It refreshes the page and goes to the correct anchor link position. How do I tell the site to just scroll to the anchor link position and not refresh the page to the location? I am missing some custom code or settings? Link to comment
Ziggy Posted April 10 Share Posted April 10 Are you using just the anchor link or the entire URL plus anchor link? Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com ☕ Did I help? Buy me a coffee? 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) 🔲 SQSP Themes (Referral link) ✨ Spark Plugin (Referral link) Link to comment
pilotjerry Posted April 10 Author Share Posted April 10 @Ziggy I tried both, just putting the anchor #id after the page slug and the entire domain. Link to comment
Ziggy Posted April 10 Share Posted April 10 If this is contained on one page, then just use the ID without slug or domain, i.e. #spa Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com ☕ Did I help? Buy me a coffee? 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) 🔲 SQSP Themes (Referral link) ✨ Spark Plugin (Referral link) Link to comment
pilotjerry Posted April 10 Author Share Posted April 10 @Ziggy I see. The only issue now is it does not scroll down to the part on the page, it just jumps to the location. Is there something I need to add to have it scroll down to the location? Link to comment
pilotjerry Posted April 10 Author Share Posted April 10 @Ziggy any ideas? thanks Ziggy 1 Link to comment
Solution Ziggy Posted April 11 Solution Share Posted April 11 10 hours ago, pilotjerry said: @Ziggy any ideas? thanks Add this to Custom CSS html { scroll-behavior: smooth; } Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com ☕ Did I help? Buy me a coffee? 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) 🔲 SQSP Themes (Referral link) ✨ Spark Plugin (Referral link) 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