Anchor Link Scroll Effect

Hi @phaslehurst,

Looking at your code, it seems you’re calling your href as if it was an id.

In the line

$(document).on('click', '#top', function(event){ }

This is saying “On click of element with the id of “top”, perform this function”. But your button is just an <a> with the href of #top.

<p><strong><a href="#top">FIND OUT MORE - GET IN TOUCH NOW</a></strong></p>

To fix this, you can either add a unique class or id to your <a> then call your function with that element’s id or class. So the easiest fix would be changing your text link to this:

<a id="top" href="#top">FIND OUT MORE - GET IN TOUCH NOW</a>

Let me know how this works out for you!

-- Ty