Home Forums WoodMart support forum Can the number of thumbnails for Single product be adjusted?

Can the number of thumbnails for Single product be adjusted?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #401011

    1429145829@qq.com
    Participant

    Can the number of thumbnails for Single product be adjusted? For example, I want to set it to 4, 5, 6, where to set it?

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

    Luke Nielsen
    Keymaster

    Hello,

    It can be adjusted only for the horizontal carousel.

    https://prnt.sc/y5CEH0OFGHId

    After enabling it, enter the below code to the functions.php file in your child theme.

    add_filter(
        'woodmart_product_gallery_settings',
        function() {
            return array(
    			'thumbs_slider' => array(
    				'items'     => array(
    					'desktop'          => 6,
    					'tablet_landscape' => 3,
    					'tablet'           => 4,
    					'mobile'           => 3,
    					'vertical_items'   => 3,
    				),
    			),
    		);
        }
    );

    Keep me informed of any issues.

    Kind Regards

Tagged: 

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