• Resolved fbntla

    (@fbntla)


    Hi,
    I need to change shop page of Woocommerce from grid to list. I started from changing the number of products to one per row using the following function:
    ====
    // Change number or products per row to 1
    add_filter(‘loop_shop_columns’, ‘loop_columns’);
    if (!function_exists(‘loop_columns’)) {
    function loop_columns() {
    return 1; // 1 products per row
    }
    }
    ====
    I also tried this one:
    ===
    // Override theme default specification for product # per row
    function loop_columns() {
    return 1; // 1 products per row
    }
    add_filter(‘loop_shop_columns’, ‘loop_columns’, 999);
    =====
    But it had no effect. Seems like theme design doesn’t use/support this filter.
    My current theme is Llorix One Lite.
    Please help to solve this problem.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Woocommerce one product per row’ is closed to new replies.