• I’m using Woocommerce. Can you tell me how to show more than the 12 items that are showing on the static page I’m using the shop page as the front page?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Adjust “24” to be whatever you desire.

    /*********************
    * Display up to 24 products per page
    /*********************/
    add_filter( ‘loop_shop_per_page’, create_function( ‘$cols’, ‘return 24;’ ), 20 );

    You may also want to change the # of products per row… use the following for that:

    /*********************
    * Override theme default specification for product # per row
    /*********************/
    add_filter(‘loop_shop_columns’, ‘loop_columns’, 999);
    function loop_columns() {
    return 4; // 4 products per row
    }

    Thread Starter mirage232

    (@mirage232)

    Thanks for responding so quickly. Where should I add the snippet? It did change anything when placed in the “additional css” in the customize area for the theme.

    You’ll need to go through the steps of setting up a child theme. Many web sites explain the process, this one is at the top of the google search: https://www.smashingmagazine.com/2016/01/create-customize-wordpress-child-theme/

    Once you have a child theme function.php file set up, that is where you’ll place the code I’ve given you.

    There may be some freely available plugins to accomplish your desires, though I don’t know of any.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Items on “shop”’ is closed to new replies.