I’m using YITH AJAX Filter. Pagination is not working correctly with their plugin and when I contacted them they wrote back…
“Your theme change the page in ajax (without reload the page) and for this reason you lost all active filters.
In order to works you must use the standard WooCommerce pagination and for this you can contact the theme author to ask to him how you can disable the ajax pagination on your theme.”
I like the way their plugin hides options that have (0) products, including the widget headers if no products in that widget are shown.
Okay. Fixed it.
I took the pagination.php in the plugin folder woocommerce – > templates -> loop -> pagination.php and replaced the theme pagination.php by uplaoding it to my child theme directory.
Then I added the styling that came from ALTO
So it looks like this:
<div class="large-12 columns">
<div class="lt-pagination style-2">
echo paginate_links( apply_filters( 'woocommerce_pagination_args', array(
'base' => esc_url_raw( str_replace( 999999999, '%#%', remove_query_arg( 'add-to-cart', get_pagenum_link( 999999999, false ) ) ) ),
'format' => '',
'add_args' => false,
'current' => max( 1, get_query_var( 'paged' ) ),
'total' => $wp_query->max_num_pages,
'prev_text' => '←',
'next_text' => '→',
'type' => 'list',
'end_size' => 3,
'mid_size' => 3,
) ) );
</div> </div> </div>
You must be logged in to reply to this topic.