Problem with products in a row
-
Good day!
I’m using Glorious theme. WooCommerce plugin for shop. The problem is that in desktop-version there are only 2 items in one row insteed 4. In mobile version (netbook, ipad, etc.) it’s ok – 4 items in one row.Settings in Theme Settings: Shop – All Products per row – 4.
I’ve tried different attempts. For example, added code into woocommerce-functions.php and functions.php:
// Display products per page $tmoption_shop_items = get_option('tmoption_shop_items'); add_filter( 'loop_shop_per_page', create_function( '$cols', 'return '.$tmoption_shop_items.';' ), 12 ); // Change number or products per row to 4 add_filter('loop_shop_columns', 'loop_columns'); if (!function_exists('loop_columns')) { function loop_columns() { return 4; // 4 products per row } }
But it still doesn’t work in desktop (PC, laptop) version. Can anyone help me solve this issue?
P.S. Screenshots are attached (1 – mobile version; 2 – laptop version).
1 – https://i79.fastpic.ru/big/2016/0727/0d/95ba151958083cf8d28e9c8ae0ad970d.jpg
2 – https://i80.fastpic.ru/big/2016/0727/33/838fe2ae423649c5fac134e73ad14a33.jpg
- The topic ‘Problem with products in a row’ is closed to new replies.