When I was developing a Woocommerce shop for one of my clients I got stuck with the rather simple standard pagination option which Woocommerce offers right out of the box. I am not sure if you can even call a simple previous and next link a pagination option. I knew there had to be an alternative, user friendlier way of implementing the pagination option into this shop.
I remembered a handy plugin called WP-PageNavi which actually does offer the result I was looking for and so I started to hook this solution into the Woocommerce shop.
wpsnacks.com has provided an awesome solution for this combination. You can find the original post here:
A small summary of how to get this done:
How to add custom pagination to your Woocommerce in 2 easy steps:
1. If you have not done so yet install and configure the WP-PageNavi plugin.
2. With the WP-Pagenavi plugin installed we can hook it’s functionality into the Woocommerce templates. You can simply do this by copying the following code into your themes functions.php file.
* Replace WooCommerce Default Pagination with WP-PageNavi Pagination
* @author WPSnacks.com
* @link http://www.wpsnacks.com
remove_action('woocommerce_pagination', 'woocommerce_pagination', 10);
add_action('woocommerce_pagination', 'woocommerce_pagination', 10);
That’s it your set! Now you just have to style your new, already good looking pagination, into the styles of the shop and you’re done.