Filter Posts in Loop without Refreshing the Page Position

I’ve created a looper of posts here. The posts can be organized by the “Filter by Grade” dropdown. Currently, it is working in showing the correct posts based on the grade tags. The problem is that if you are scrolled down, click a filter tag, it refreshes the page and pops you all the way back up to the top of the page.

Is there a way I can have it so that if you select a grade to filter the posts by that it updates the posts on the page, but does not move your current scroll position? I think this can be achieved by Ajax.

Hi @santosfel5,

Thanks for reaching out.
I have checked the URL but unfortunately didn’t get any filter tag option for click after scrolling down. I would suggest you provide any video that helps us to recognize the problem.

If the page refresh is the problem while selecting the dropdown, you need to use AJAX for it, and that is required custom development. Please remember that custom development is beyond the scope Theme Support.

If you are not proficient in this, I would suggest you hire a developer who can assist you to do the customization or you can avail of our newly launched service called One, where we answer the questions beyond normal theme support or Elite team if required any complex programming for this.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.