New Landing How can we help? Themeforest Theme Support Neighborhood How to change default # of items on shop page?

Viewing 6 posts - 1 through 6 (of 6 total)
  • #51354
    catseye
    Member
    Post count: 43

    Just wondering how to set the number of default items on the shop page? I know that it’s default is set at 24, but what if I want it to show 48 or show all?

    Cheers.

    #51704
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    There is no setting for this there you would have to edit the WooCommerce files to do this.

    – Kyle

    #51809
    catseye
    Member
    Post count: 43

    Would you know how to do this?

    Cheers.

    #51904
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Not entirely sure as I didn’t develop the theme however you can try adding this to your functions.php

    add_filter( 'loop_shop_per_page', create_function( '$cols', 'return 48;' ), 20 );

    If this doesn’t work I will ask the developer.

    Thanks

    – Kyle

    #65770
    catseye
    Member
    Post count: 43

    Thank you, this has worked. Would be helpful if we were told where to put the code though, just for beginners’ sakes.

    #65873
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    I did:

    adding this to your functions.php

    – Kyle

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register