Home › Forums › CSS › Jquery Smooth Scroll to a name and id › Re: Jquery Smooth Scroll to a name and id
May 17, 2013 at 12:25 pm
#135452
chett
Member
chrisdewar’s code is the only one that seems to work with the Joomla template I’m using, but for a few pages I have the anchors set up as follows:
<a href="#fn:1.footnotes" rel="footnote">1</a>
<li id="fn:1.footnotes">
first footnote
</li>
because I’m using a jQuery popup for those footnotes. The problem is that when the anchor is clicked the screen scrolls to the top. If I could have the scroll code ignore these anchors that would be fine. If I could get it to work here even better. I’ve fiddled around a little but I don’t yet have the know how to figure it out. Any hints?