• Hi
    I’m in WordPress with xampp.
    I’m using Virtue theme(free version) and tried to change woocommerce columns to 5 with plugins and codes, but nothing happened…
    codes I used:

    global $woocommerce_loop;
    $woocommerce_loop['columns'] = 5;

    and

    add_filter( 'loop_shop_columns', 'wc_loop_shop_columns', 1, 10 );
    
    function wc_loop_shop_columns( $number_columns ) {
     return 5;
    }

    and

    function loop_columns() {
    return 5; // 5 products per row
    }
    add_filter('loop_shop_columns', 'loop_columns', 999);

    I tried this plugins: …product per page, WooCommerce Product Archive Customiser, and last version of visual composer,and woocommerce shortcode…
    I tried everything but just 3 columns and 4 columns, not 5.
    of course I saw a video that uses dhvc woocommerce shortcodem which I couldn’t find it.
    by the way, I’ll be grateful if somebody help me…

  • The topic ‘problem in changing product columns in woocommerce shop page’ is closed to new replies.