I just follow this instructions http://forum.wpbeaverbuilder.com/knowledge-base/smooth-scrolling-buttons-icons-and-links/ and works grate but I want to remove the #anchorid in the address bar I found this apparent solution http://stackoverflow.com/questions/9509323/remove-the-anchor-id-when-scrolling but I dont know in what part should I do that change or if exist other solution, Thank you for your help in advance.
Hey Jon,
Welcome to the BB forums!
We recently added that functionality to make it more flexible. Try adding the JS code below and see if it works for you. You can add it to the Tools > Global Settings > JS section.
(function($){
FLBuilderLayout._scrollToElement = function( element, callback ) {
var config = FLBuilderLayoutConfig.anchorLinkAnimations,
dest = 0,
win = $( window ),
doc = $( document );
if ( element.length > 0 ) {
if ( element.offset().top > doc.height() - win.height() ) {
dest = doc.height() - win.height();
}
else {
dest = element.offset().top - config.offset;
}
$( 'html, body' ).animate( { scrollTop: dest }, config.duration, config.easing, callback );
}
}
})(jQuery);
Ben
1 Like
Hi Ben Carlo Thank you works grate, thank you for your work and the welcome.
Awesome! And no worries at all, Jon.
Enjoy BB!
Ben