WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
[resolved] Only showing 5 products per page (5 posts)

  1. littlebizonline
    Member
    Posted 1 year ago #

    Hi,
    I have set up a Woocommerce store and while the categories are showing up fine, all my product pages are limited to 5 products per page (before pagination). This is a problem because it is 4 products on the top row, and then one underneath product #1. Therefore customers think there are only 5 products in the category and it isn't obvious to click to the next page. I would love to change this to 8 or 12 per page.
    So far I have tried:
    - changing the number of blogs shown in the Settings>Reading section.
    - changing the wp-content/themes/yourtheme/functions.php to include the below code:

    // Display 24 products per page. Goes in functions.php
    add_filter( 'loop_shop_per_page', create_function( '$cols', 'return 24;' ), 20 );

    So far no success. If anyone can help, it would be greatly appreciated.
    The theme of this site is Modest (Elegant themes) - and it is what the client wants to keep...

    http://www.divineyou.co.nz/shop

    Thanks

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

  2. Roy Ho
    Member
    Posted 1 year ago #

    From what I remember Elegant themes have their own post per page thing...Look thoroughly in the theme settings...

  3. littlebizonline
    Member
    Posted 1 year ago #

    Thanks for the quick reply.
    Could you please clarify if you mean in the Appearance>Theme Options, or if you are referring to accessing the php files?
    Anything else you can remember to point me in the right direction would be very helpful :)

  4. littlebizonline
    Member
    Posted 1 year ago #

    ah I found it - legend thank you!!

    For anyone else - it is in the Appearance>Theme Options>General settings tab

    YAY!!!!

  5. lanhub
    Member
    Posted 4 months ago #

    This issue has been bugging me all day. Thanks Roy!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic