Home Forums WoodMart support forum Products columns on mobile

Products columns on mobile

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

    wavai
    Participant

    Hello,

    We have a category/products carousel slider on the homepage. It looks great on desktop, however, on mobile it automatically shows 2 items. Is it possible to make it only show 3 per row on mobile devices?

    #284095

    Hello,

    Unfortunately, there is no option. The mobile view covers the width range from 768px to 320px and if it would look nice on 768px it would not be visible enough on 320 or even on 400+px

    If you have any questions please feel free to contact us.

    Best Regards

    #284392

    wavai
    Participant

    Hello Elise,

    I have reviewed a few websites displaying 3 products per row on mobile devices, this option will be only for the homepage.

    Is there any custom PHP code that can bed added in functions.php ?

    #284558

    Hello,

    Please add this code to the functions.php of the child theme

    add_action(
    	'wp',
    	function() {
    		global $xts_woodmart_options;
    		$xts_woodmart_options['products_columns_mobile'] = 3;
    	},
    	5000
    );

    Best Regards

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