Home Forums WoodMart support forum Responsive product mobile view

Responsive product mobile view

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #35874

    Haresh
    Participant

    Hello,

    I want to show only one product in Mobile view on Home Page carousel slider and Shop Page product list. Please check attached screenshot.

    Any help will be appreciated.

    Thanks in advanced.

    Attachments:
    You must be logged in to view attached files.
    #35894

    Artem Temos
    Keymaster

    Hi,

    You can change this option in Theme Settings -> Shop -> Products grid.

    Regards

    #35897

    Haresh
    Participant

    Hello,

    Ok, it is done on shop page but what about the home page carousel slider. There also I want to show 1 product on mobile view.

    Thanks

    #35898

    Artem Temos
    Keymaster

    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;
    	$items['tablet'] = ( $items['desktop_small'] > 1 ) ? $items['desktop_small'] : 1;
    	$items['mobile'] = 1;
    
    	return $items;
    }
    #36040

    Haresh
    Participant

    Hello,

    It is Done. Thank you.

    Regards

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

The topic ‘Responsive product mobile view’ is closed to new replies.