Hey ,
I have this view results here hidden link and I need to scroll on top when someone navigate to the second page. Now when I click 2, I land in the same place, meaning bottom of the project list. Instead, can we take the user up the project list again?
Hello,
There isn't such kind of built-in feature, it needs custom codes, for example, you can edit your post view, in section "Search and Pagination"-> "JS editor", add below custom JS codes:
jQuery( document ).on( 'js_event_wpv_pagination_completed', function( event, data ) {
/**
* data.view_unique_id (string) The View unique ID hash
* data.effect (string) The View AJAX pagination effect
* data.speed (integer) The View AJAX pagination speed in miliseconds
* data.layout (object) The jQuery object for the View layout wrapper
*/
jQuery(window).scrollTop( 100 );
});
It will be triggered after Views AJAX pagination completed.
More helps:
hidden link
My issue is resolved now. Thank you!