Skip Navigation

[Closed] Pagination with manual transition and page reload then scroll to div top

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.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 3 replies, has 1 voice.

Last updated by Minesh 1 month, 4 weeks ago.

Assisted by: Minesh.

Author
Posts
#2804776
Screenshot 2025-04-10 093055.jpg
pagination setting.jpg

Hi there,

I am using the Toolset Views plugin to create a listing of publications with checkbox filters.
I have 'Pagination enabled with manual transition and page reload' enabled under 'Pagination and Sliders Settings', and we have a numeric pagination added below the listing.

We added in this code for the numeric pagination under 'Loop Editor':

[wpv-pagination][wpv-pager-nav-links output="bootstrap" previous_next_links="true" reach="3"][/wpv-pagination]

What we want is after a pagination link is clicked, it does a full page reload, then we want it to scroll down to a div (id name 'result-container').

I've found some forum posts on how to do this:
https://toolset.com/forums/topic/adding-anchor-or-scrolltop-after-manual-pagnination-and-page-reload/
https://toolset.com/forums/topic/pagination-w-manual-transition-page-reload-and-scroll-to-anchor-or-top-of-div/

It seems to be using this shortcode:

[wpv-conditional if="( '[wpv-search-term param="wpv_view_count"]' ne '' )"]
<script>
jQuery(document).ready(function () {
jQuery('html, body').animate({
scrollTop: jQuery('#result-container').offset().top
}, 'slow');
});
</script>
[/wpv-conditional]

however, I am not sure where to add that piece of code.
Should I add that in the 'Loop Editor ', right below [/wpv-no-items-found] (screenshot attached) ?

thank you!

#2804787

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Can you please share problem URL as well as admin access details.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2805619

Hi Minesh,

Sorry for the late response, but the site is on my computer (I am using Local WP), it's not on a live server, so I can't provide you access.

#2805637

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Well - you can upload the site to any server and send me the link to access details and problem URL.

I have set the next reply to private which means only you and I have access to it.

The topic ‘[Closed] Pagination with manual transition and page reload then scroll to div top’ is closed to new replies.