Hi! I’ve made my sticky bar invisible except on scroll up. The problem is I have an anchor on my homepage which is offset by the height of the sticky bar when you click on it.
This is my site: https://rossettibev.wpengine.com/
Currently, I have a bouncing arrow pointing down. When you click on it, it should take you to the section with the ID #navbartrigger. What it does is it takes you to that section, but it’s popped up about the height of where the sticky bar would be.
I tried removing this offset with some javascript, but it did not work.
jQuery( function($){
$(document).on('click', '.arrow-button[href^="#navtrigger"]', function( e ) {
var ID = $(this).attr('href');
e.stopPropagation();
$('html, body').stop().animate( { scrollTop : $(ID).offset().top + 112 }, 'linear' );
});
});
How would I go about removing the offset for the anchor link on this arrow button?


