Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #12705

    Hi,

    I would like to change the number of columns in the woocommerce shop from the current 3 to 2. I would guess I am not the first one wanting to do this but I can’t find any exisiting thread.

    In advance, thanks!

    Carl

    #76418

    Hi Carl,

    As far as I know there isn’t an easy way to accomplish this without some heavy modification to the theme files. I’ll put in a feature request for choices in column count as it would need some additional code in the core files to even be doable.

    Regards,

    Devin

    #76419

    I have been looking for this exact solution. If you could even leave directions on how this can be accomplished, that would be great. Please help.

    #76420

    Hi,

    Try to add this on your custom.css

    .shop_columns_3 .products .product {
    margin: 0 4% 20px 0;
    width: 46%;
    }

    Regards,

    Ismael

    #76421

    Hi,

    One of Woo developers says to do this: (paste the code in your fuctions.php file)

    add_filter ( 'woocommerce_product_thumbnails_columns', 'zz_thumb_cols' );
    function zz_thumb_cols() {
    return 5; //Change the 5 to reflect how many columns you need
    }

    Reference: http://chromeorange.co.uk/woocommerce-set-number-of-thumbnail-columns/

    Thanks,

    Nick

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

The topic ‘Change number of columns in Woocommerce shop’ is closed to new replies.