Home>Support>Unwind Woocommerce product per row

Unwind Woocommerce product per row

Hi,

I would like to know how to change the product per row in the Product Archive page on the Unwind theme, I’ve try somes things but there is a problem with the product order alignement and the responsive.

I try this in the functions.php

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

And I try to only change the product margin.

.products .post{
width: 21% !important;
margin: 2% !important;
clear: none !important;
}

Thanks ! I love your plugins

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 7 years, 8 months ago Alex S
    Hi, I Work Here

    Hi Rob,

    You can change this with some custom CSS. If you navigate to AppearanceCustom CSS, you’ll get our custom CSS editor. Just add the following code.

    .woocommerce ul.products li.product:nth-of-type(3n+1) {
    	margin-left: 1.75%;
    }
    
    .woocommerce ul.products li.product {
    	width: 20%;
    }
    
    .woocommerce ul.products li.first {
    	clear: none;
    }
    

    How does that look?

    You might also need to install the SiteOrigin CSS Editor.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More