[Résolu] After previous or next pagination link scroll to the top of the div not the page
This support ticket is created Il y a 3 années et 10 mois. There's a good chance that you are reading advice that it now obsolete.
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.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
In my view (Pagination enabled with manual transition and AJAX) I have pagination links displayed below the loop in the loop editor. I also have a little js snippet in the loop editor js box to make the pagination scroll to the top of the page when the user clicks the Previous or Next pagination links like so:
I would like the 'scroll to top' function to scroll to the top of a particular location. Lets say, for example, a div (by id?) that would wrap the view in the the loop editor itself or in the template where the view is displayed. Or to an anchor or similar.
I have tried all the other 'scroll to specified location' ideas in other threads but cannot seem to get any to work.
Unfortunately, I am not very deft with jQuery... and am hoping you can help me out?
Many thanks in advance!
Rita