Offset ancertainamountofpixels
-
Everthing works almost flawlessly, really nice! Thanks for that!
Now, I’ve got one small issue which is bugging me. When clicking the ‘Lees verder’ button (read more in Dutch) in my posts the offset gives the correct height for the scrollbar, but then some 30px to low. I already checked any margins or paddings that could be causing some weirdness in the offset but found none.
I’m not good in the js field, just getting started with it actually, but do know how to read english and a bit of code:
//Scroll to the top of ajax container jQuery('html, body').animate({ scrollTop: jQuery(contentSelector).offset().top }, 750);
I tried to alter this so that it will move up 30px extra, but couldn’t. Also not sure if this is a problem caused by something else on my site. Link to site.
Thanks!
https://www.ads-software.com/plugins/ajaxify-wordpress-site/
- The topic ‘Offset ancertainamountofpixels’ is closed to new replies.