Hi folks,
I have a WooCommerce Layout that is using the Post Pagination (https://jaxengrey.com/shop/). The client doesn’t want to show the last page number — i.e., Page 39 — as it overwhelms the customers.
Is there a filter or functions.php script that can remove ‘last page’ from the pagination?
I’ve tried display: none on last-child(2) to remove — which works well on the main archive… but when we’ve got an archive with only 3 pages, it removes #2. I’ve also tried hooking into the body page-2 and page-3 to remove but I think we’ll have to chase that hack all the way up to page-6 or so…
Thanks!
Luke