Home › Forums › WoodMart support forum › Brands Display › Reply To: Brands Display
February 2, 2018 at 8:10 am
#36947
Artem Temos
Keymaster
Hi,
Try to add the following PHP code snippet to the child theme functions.php file to do this
function woodmart_get_owl_items_numbers( $slides_per_view ) {
$items = array();
$items['desktop'] = ( $slides_per_view > 0 ) ? $slides_per_view : 1;
$items['desktop_small'] = ( $items['desktop'] > 1 ) ? $items['desktop'] - 1 : 1;
if ( $items['desktop'] == 6 ) $items['desktop_small'] = 4;
$items['tablet'] = ( $items['desktop_small'] > 1 ) ? $items['desktop_small'] : 1;
$items['mobile'] = 2;
return $items;
}
But note that this rule will be applied for all carousels on your website.
Regards