<a href="[[~[[*id]]]]#expenses">expenses</a>
$.localScroll({ lazy: true, stop: true, hash: true });
This question has been answered by jeffmiranda. See the first response.
<base href="[[!++site_url]]">
do you have the following in the header of your template ?
<base href="[[!++site_url]]">
$.localScroll({
$('#expenses').localScroll({
Don't you need?$('#expenses').localScroll({
While your suggestion prevents being redirected to the homepage once the anchor is reached, it breaks the smooth scroll effect; it simply jumps to the anchor.
I'm using this
<a href="[[~[[*id]]]]#expenses">expenses</a>
to link to the "expenses" id at the bottom of a page. Both the link and anchor are on the same page. Clicking the link does take me to the anchor, the problem is when I add jQuery Smooth Scroll
$.localScroll({ lazy: true, stop: true, hash: true });
as soon as the anchor is reached the page redirects to the homepage.
Revo 2.2.5
I'm using this
<a href="[[~[[*id]]]]#expenses">expenses</a>
to link to the "expenses" id at the bottom of a page. Both the link and anchor are on the same page. Clicking the link does take me to the anchor, the problem is when I add jQuery Smooth Scroll
$.localScroll({ lazy: true, stop: true, hash: true });
as soon as the anchor is reached the page redirects to the homepage.
Revo 2.2.5
$(document).ready(function() { $('.scrollme').smoothScroll({ speed: 1200 }); });