• Only two products displaying in a row.

    I’ve read about this on other posts, and I’ve tried putting this in the theme folder’s functions.php file:

    // Change number or products per row to 3
    add_filter(‘loop_shop_columns’, ‘loop_columns’);
    if (!function_exists(‘loop_columns’)) {
    function loop_columns() {
    return 3; // 3 products per row
    }
    }

    However, it doesn’t seem to work and I still get 2 rows of products.

    I’d really appreciate help with this:

    https://wordpress.org/plugins/woocommerce/

Viewing 1 replies (of 1 total)
  • Caleb Burks

    (@icaleb)

    Automattic Happiness Engineer

    Your theme may be using this filter already, or it may not be using the default WooCommerce styles. This filter basically just changes the .first and .last classes on the products for css purposes.

    If it’s not working, you’ll need to contact the theme authors.

Viewing 1 replies (of 1 total)

The topic ‘Woocommerce’ is closed to new replies.