Home Forums WoodMart support forum Brands Display

Brands Display

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #36922

    keizershaquil
    Participant

    Hello,

    How can I make the brands on the mobile version display two at once? Please see attached screenshot.

    Best Regards

    Attachments:
    You must be logged in to view attached files.
    #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

    #37045

    keizershaquil
    Participant

    You’re the man 🙂

    #37047

    Artem Temos
    Keymaster

    Always glad to help you 🙂

Viewing 4 posts - 1 through 4 (of 4 total)