different offset value when page is at top
-
Hi,
First of all, thank you for the great plugin!
While everything works fine, I would like to know if you can set a different offset value when page is at top. Because my site has a banner that is fixed at the top of the website(not fixed to follow when scroll) and because of this, when anchor link is clicked, it stops at different pixel. I want normal offset at 120px but 180px when page is at top.I used jQuery
if(($('body').find('p.woocommerce-store-notice').length !== 0) && ($(window).scrollTop() === 0)) { $('html, body').animate({ scrollTop: $( $.attr(this, 'href') ).offset().top - 180 }, 800); }
as conditional rule which used to work, but after installing your plugin, this doesn’t work. So I’m stuck.
Help is greatly appreciated!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘different offset value when page is at top’ is closed to new replies.