Digital experiences for all disciplines
Forum Replies Created
-
-
Hi Laranz,
I think I have to explain my problem in other words:We want to display the mini-product-item with four columns. BUT in a width of 3/4 of the grid. at the moment it just displays 3 times (take a look at the first screenshots I uploaded).
with the code i’ve posted above i can set the columns to 4. but it effects not only the mini-products, but also the standartsized ones, I’ve showed you with the third screenshot.
Is there any possibility that the code affects just to the 3/4 mini-product-item?
And i want 4items per row for the mini-products and 3 items per row for the standard-products.
Hi,
I’m sorry, i meant 4 rows. so i set the code like this:add_filter(‘loop_shop_columns’, ‘loop_columns’); if (!function_exists(‘loop_columns’)) { function loop_columns() { return 4; } }
Hi Mohammad,
thanks for your reply. I’ve inserted the code`add_filter(‘loop_shop_columns’, ‘loop_columns’);
if (!function_exists(‘loop_columns’)) {
function loop_columns() {
return 3; // 3 products per row
}
}´and it worked well.
Now I have another problem, because this script not just applies to the mini-products but also to the standard-sizes products. Do you have any idea what code I can add?
Thank you very much!Attachments:
You must be logged in to view attached files. -