I’ve tried to implement this on my site but it simply does not work. Anyone know where I’m going wrong?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This is the code provided by the smooth scrolling tutorial:
This is the code on your page:
The code you are using is the alternative the tutorial provides when using named anchors. However, that is meant the replace the corresponding part of the original code. I believe what you should have is this: