I updated to the custom-js.php Smooth Scrolling function to allow for urls with hash tags. This allows you to have links like http://site.com/#four. Basically the function check to see if you are on the current url; if so then just smoothly scroll to hash; if not then goto the url is always.
// Smooth Scrolling
jQuery(document).ready(function(){
jQuery(‘a’).on(‘click’,function (e) {
if (this.hash) {
clicked_url_no_hash = this.href.split(‘/#’)[0].replace(/\/+$/, “”);
current_url_no_hash = window.location.href.split(‘/#’)[0].replace(/\/+$/, “”);
if (current_url_no_hash == clicked_url_no_hash) {
e.preventDefault();
var target = this.hash;
var $target = jQuery(target);
jQuery(‘html, body’).stop().animate({
‘scrollTop’: $target.offset().top
}, 900, ‘swing’, function () {
window.location.hash = target;
});
}
}
})
});