WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Include pagination to the top of page. (6 posts)

  1. Teak-Monkey
    Member
    Posted 1 year ago #

    Hi there,

    How do you edit the pagination so it appears at the top and the bottom of the product loop?

    Any help would be great.

    Thanks

    http://wordpress.org/extend/plugins/woocommerce/

  2. bheadrick
    Member
    Posted 1 year ago #

    modify the archive-product.php template file
    Move this:

    <?php
    			/**
    			 * woocommerce_pagination hook
    			 *
    			 * @hooked woocommerce_pagination - 10
    			 * @hooked woocommerce_catalog_ordering - 20
    			 */
    			do_action( 'woocommerce_pagination' );
    		?>

    to just below this:

    <?php do_action('woocommerce_before_shop_loop'); ?>

  3. Teak-Monkey
    Member
    Posted 1 year ago #

    Thanks - this is great.

    Is there a reason why the page numbers do not appear?

  4. bheadrick
    Member
    Posted 1 year ago #

    you need wp pagenavi for page numbers

  5. Teak-Monkey
    Member
    Posted 1 year ago #

    I'm sorry but could expand on that.

    Wouldn't I using the woo-pagination?

  6. vestmar
    Member
    Posted 11 months ago #

    After spending a couple of hours on this issue, here is the solution:

    Insert <?php do_action('woocommerce_after_shop_loop'); ?> after this line <?php if ( have_posts() ) : ?> in the archive-product.php of your woocommerce theme (shopifiq in my case).

    Hope this helps!

    Puiu

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags