You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found lots of code for that online which I couldn't get to work, so I will leave this new working code here, which lets the original unchanged anchors work:
$(document).ready(function() {
$("a").click(function() {
if($(this).attr('href') == "#top"){
//this bit is for wordpress, where top is default: .entry-title
var elID=".entry-title";
$(".jsoverflow").mCustomScrollbar("scrollTo",elID);
}else{
if ($(this).attr('href').indexOf("#") >= 0){
//this bit is for any other anchor $(".jsoverflow").mCustomScrollbar("scrollTo",$(this).attr('href'));
}
}
});
});
links to anchors are no longer working since we installed this.
The text was updated successfully, but these errors were encountered: