Problem:
Force Ajax pagination to scroll to a certain place on the page
Solution:
Add the Javascript below to your theme:
jQuery( document ).on( 'js_event_wpv_pagination_completed', function( event, data ) { jQuery([document.documentElement, document.body]).animate({ scrollTop: jQuery(".js-wpv-loop-wrapper .tb-grid-column:nth-child(1)").offset().top }, 300); });
Change the selector in the code depending on your needs.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
This topic contains 2 replies, has 2 voices.
Last updated by 2 years, 4 months ago.
Assisted by: Christopher Amirian.