Not able change number of columns woocommerce

Posted in: Newspaper
Post count: 32

Our site is 34northdrones.com. I’m trying to have 3 products per or 3 column layout on the shop, category and search result pages.

I’ve tried to use the Customize to edit products per row – nothing changed, even after publishing

I’ve tried adding the following code to function.php.

/**
* Change number or products per row to 3
*/
add_filter('loop_shop_columns', 'loop_columns', 999);
if (!function_exists('loop_columns')) {
function loop_columns() {
return 3; // 3 products per row
}
}

I can’t even get more than 2 products to show per row when using a WooCommerce shortcode on our custom /shop page:

[products limit="6" columns="3" orderby="id" order="DESC" visibility="visible"]

Is there any other files I need to modify to get 3 products per row?

Post count: 18283

Hello !

Please follow this tutorial in order to edit your page: https://docs.woocommerce.com/document/change-number-of-products-per-row/

Thank you !

Post count: 32

I’ve tried adding both versions of the code to the function.php file and it is still not working. Could there be any other files in the theme that would override the function.php file settings for number of columns?

  • This reply was modified 6 years by smehr1.
Post count: 18283

Hello !

Please contact us via email at contact@tagdiv.com and provide admin login, as well as cPanel or FTP if possible. We will take a look. Include a link to this topic in the email.

Thank you !

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.