I’m using the pagination component on my main blog page to limit the number of viewable posts. However, because of design, the pagination buttons sit well below the start of the viewable items, and when a next or previous page button is clicked it switches between them, but requires the user to scroll back to the fist item in the list. Also, at times on mobile view, it jumps directly to the bottom of the list which removes the entire list of posts from view.
Is there a way to scroll back to the the top of the list when the user clicks a page number, or next and previous? Can this be achieved with an anchor and javascript, or possibly with a ‘bs-data=’ instruction?
The pagination in the blogloop component isn’t true pagination. Simply toggling the display from none to block when changing pages isn’t ideal. If your blog has many pages, all blog items are still loaded at once, which increases the page load time. There are better ways to implement pagination and filter your blog data more efficiently.