Three product in one row
Multipurpose WordPress Theme Forum Support
- GK User
- Tue Feb 21, 2017 9:59 am
I have quark ecommerce in use. Problem is that in shop page there is two product in one row.
I would like to have three product in one row. Any change to have css for that?
Thanks
I would like to have three product in one row. Any change to have css for that?
Thanks
-
- Junior Boarder
- Joshua M
- Tue Feb 21, 2017 10:24 am
Hi,
Try to add the following custom css code:
and you have to edit this fragment from Quark/functions.php file:
Change "return 2" into "return 3".
Try to add the following custom css code:
- Code: Select all
ul.products li.product {
width: 33%;
}
and you have to edit this fragment from Quark/functions.php file:
- Code: Select all
// Change number or products per row to 2
add_filter('loop_shop_columns', 'quark_loop_columns');
if (!function_exists('quark_loop_columns')) {
function quark_loop_columns() {
return 2; // 2 products per row
}
}
Change "return 2" into "return 3".
-
- Moderator
- GK User
- Tue Feb 21, 2017 12:59 pm
Thanks!
-
- Junior Boarder
3 posts
• Page 1 of 1