Jump to content

Smooth Anchor doesn't work

Recommended Posts

Hi,

I have an anchor links on my site and they works. But I want to make them smooth so according to videos I added code into CSS - html { scroll-behavior: smooth;} but it doesn't work. I have a business plan so it should work. Is it possible that it doesn't work because these links redirect me up to the page and not down?

 

Does somebody know where is a problem?

Thank you for help

Link to comment
  • Replies 5
  • Views 1.2k
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Can you share your website and where some of these anchor link are?

Could you confirm exactly where you put this code?

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 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment
3 hours ago, Ziggy said:

Can you share your website and where some of these anchor link are?

Could you confirm exactly where you put this code?

html {
  scroll-behavior: smooth;
}

 

My website is private but my Anchor links are at the bottom of pages, not in footer.

 

Sure, I put that code in Website->Website Tools->Custom CSS

Link to comment
1 minute ago, Piro said:

Sure, I put that code in Website->Website Tools->Custom CSS

If it's saved there, then that can't be the problem.

I can't really help troubleshoot without seeing what you've set up:
https://squarefortytwo.com/squarespace-guides/add-a-site-wide-password-to-your-squarespace-website

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment
42 minutes ago, Piro said:

Can I send you password somewhere to Dicrect Message?

Yes, if necessary, you can message me directly here.

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? 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.