wowthemesnet / mediumish-theme-jekyll

Jekyll Template - Mediumish
https://wowthemesnet.github.io/mediumish-theme-jekyll/
MIT License
1.29k stars 1.53k forks source link

Smooth scrolling conflict with Bootstrap tabs. #136

Open kannansuresh opened 4 years ago

kannansuresh commented 4 years ago

Tabs functionality of Bootstrap won't work with the theme because of the smooth scrolling functionality in mediumish.js conflicts with it.

Below is the piece of code from mediumish.js that causes the issue.

$('a[href*=\\#]:not([href=\\#])').click(function() {
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
    smoothScrollTo($(this.hash));
    return false;
}
});