Home › Forums › WoodMart support forum › Pagination issue with back button
Pagination issue with back button
- This topic has 5 replies, 2 voices, and was last updated 3 years, 7 months ago by
Elise Noromit.
-
AuthorPosts
-
December 10, 2021 at 4:07 pm #338574
foruspParticipantI have an issue with pagination. When I set it to infinite scroll, it works but when scrolling down the URL changes to page2, page3 and so on. When I click a product on page 3 for example and go into that product and hit the back button, I go back to page 3. Page 1 and 2 products are missing.
So it doesn’t take you to the previous page! Very confusing!
Tried to disable the functionality and use a plugin instead, but cannot disable the pagination at all. Need a solution for this!December 13, 2021 at 10:17 am #339082
Elise NoromitMemberHello,
Please add this line to the functions.php of the child theme:
add_filter( 'woodmart_load_more_button_page_url', '__return_false' );
This customization of the URL would not change during the scroll.
It is not possible to disable the pagination totally.
This option enables the deault pagination: https://prnt.sc/22s0fsg
Best Regards
December 22, 2021 at 2:58 pm #341285
foruspParticipantThis helps a bit, but when I use the back button it will not go back to the location I was last. For example, if I scroll down 4 pages and click a product to open it, I click the back button and will return to the “second” page (1 infinite scroll action).
December 22, 2021 at 4:40 pm #341312
Elise NoromitMemberHello,
This customization of the URL would not change during the scroll.
It is not possible to disable the pagination totally.
This option enables the deault pagination: https://prnt.sc/22s0fsg
Best Regards
December 23, 2021 at 7:40 am #341437
foruspParticipantThank you, but I’m asking about infinite scrolling, not default pagination.
I tried using plugins, but it seems the theme applies some resizing on product, but it doesn’t do the same when products are loaded in ajax. Basically; we are stuck. Infinite scrolling in the theme does not work very well (back button loses location and the search page does not use infinite scroll at all) and plugins cannot work with the theme…
We need a solution for this. Any help would be appreciated!
December 23, 2021 at 11:09 am #341502
Elise NoromitMemberHello,
This is the way the infinite scroll works.
We have provided the solution not to change the URL.
If the infinite scroll is not appropriate, you can choose the pagination.
Best Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register