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.
-
This topic was modified 7 years by
unlockmyrouter.
my previous question if related to the woocommerce shop page.
https://www.unlockmyrouter.com/shop/
I want 4 products in each row
Hi,
There should be 4 by default. You seem to only have 2 for some reason. Check in the customize section – http://prntscr.com/mkxfz3 – http://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
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.
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
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
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