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 :)
User avatar
Junior Boarder

Joshua M
Tue Feb 21, 2017 10:24 am
Hi,

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".
User avatar
Moderator

GK User
Tue Feb 21, 2017 12:59 pm
Thanks!
User avatar
Junior Boarder


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.