Change the number of columns in woocommerce row to 4

Posted in: Newspaper
Post count: 9

Hi,

NewsPaper Theme:

I tried everything to change the number of columns to 4 but nothing is being changed.
https://ibb.co/ZJZyd8w

Please help. I tried creating custom page using WP Bakery also but the result is same.

Post count: 9

my previous question if related to the woocommerce shop page.
https://www.unlockmyrouter.com/shop/

I want 4 products in each row

Post count: 20688

Hi,

There should be 4 by default. You seem to only have 2 for some reason. Check in the customize section – http://prntscr.com/mkxfz3http://prntscr.com/mkxez9
http://prntscr.com/mkxfj8
Or do it with a code in the theme or child theme functions file
https://docs.woocommerce.com/document/change-number-of-products-per-row/

Thanks

Post count: 9

Thankyou for your response.

I have tried everything mentioned by you already.

I changed the number of columns from Appearance-> customize section it is displayed correctly on that customize screen but after publishing/saving the changes it return back to same stage(i.e. 2 columns)

I have tried the code mentioned by you also in my child functions.php file, but the result remain same.
/**
* 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 will be highly thankful if somebody can help me with a working solution or pointing me to what is conflicting.

Post count: 9

This is how it is shown in customizer
https://ibb.co/3kPw9md
After refreshing options 4 columns are displayed in the preview only but disappear after publishing.
https://ibb.co/c63gdFc

I don’t if it is linked or not but the product page is also displayed in a single column. Like it is given below.
https://ibb.co/qsrwVFL

Post count: 20688

I see 4 products at the moment, if this is the website shop – http://prntscr.com/ml2gcm
Single product looks alright – http://prntscr.com/ml2gwe

Post count: 9

I just now managed to fix it. My caching plugin was the culprit and was creating this problem. But now it seems to be fixed.

Thanks a lot Simion

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