Home Forums WoodMart support forum Categorías widget in 3 cols for mobile

Categorías widget in 3 cols for mobile

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

    DevianOsys
    Participant

    Hello.
    I need the Product Categories section that I have on my home page in mobile version to show in 3 columns.
    It is currently only seen in 2.
    I am using Elementor.

    (Producto categories section: https://prnt.sc/11zeq37
    I want it to look this way: https://prnt.sc/11xftba

    #286287

    Hello,

    Thank you very much for choosing our theme and for contacting us.

    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

    #286339

    DevianOsys
    Participant

    Hi, I tried your code but it changed everything to 3 columns for me.
    I just want the mentioned widget to be in 3 columns (https://prnt.sc/11xftba), the rest is fine in 2.

    https://prnt.sc/11zx553
    https://prnt.sc/11zx9k9

    #286699

    Hello,

    Please replace the code with this one:

    add_filter(
    	'woodmart_categories_shortcode_custom_sizes',
    	function() {
    		return array(
    			'desktop'          => 8,
    			'tablet_landscape' => 4,
    			'tablet'           => 4,
    			'mobile'           => 3,
    		);
    	}
    );

    Change the values as per your needs.

    Best Regards

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