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:
http://wpsnacks.com/wordpress-tutorials/how-to-add-custom-pagination-page-navigation-to-woocommerce/
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.
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
/** * * Replace WooCommerce Default Pagination with WP-PageNavi Pagination * * @author WPSnacks.com * @link http://www.wpsnacks.com * **/ remove_action('woocommerce_pagination', 'woocommerce_pagination', 10); function woocommerce_pagination() { wp_pagenavi(); } 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.


16 Comments
Tyguy
22 May 2012 at 23:19Mark
24 May 2012 at 09:35Zjan Preijde
4 June 2012 at 18:27Mark
4 June 2012 at 19:13Ines
14 October 2012 at 21:09Mark
16 October 2012 at 13:50ryan
10 November 2012 at 04:20Mark
4 December 2012 at 14:52Pablo Pacheco Karzin
18 April 2013 at 18:24Mark
18 April 2013 at 19:20Connie Cooper
23 April 2013 at 01:32Mark
23 April 2013 at 01:35Connie Cooper
23 April 2013 at 02:05Connie Cooper
23 April 2013 at 02:51Connie Cooper
23 April 2013 at 03:02