This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Unwind Woocommerce product per row

9 years ago · Last reply by Alex S 9 years ago

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.

Need fast email support? Get SiteOrigin Premium

Replies

1
  1. Alex S Staff 9 years, 25 days ago

    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.

Have a different question or issue?

Start New Thread