Home Forums WoodMart support forum Increase in No of Thumbnail images

Increase in No of Thumbnail images

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #223918

    Officialpandapanti
    Participant

    Hey Woodmart Team,
    How Can I increase the number of thumbnail images on desktop as well as mobile. I need 5 images. I have very less knowledge of PHP. Please guide me step by step on how to change it.

    Regards,
    Sanchit Modi

    #223964

    Artem Temos
    Keymaster

    Hello,

    Please, provide us a screenshot of this problem for better understanding. Where exactly do you want to increase this number?

    Kind Regards

    #224010

    Officialpandapanti
    Participant

    The number of thumbnails is only 3 on mobile and I need minimum 5. Same for desktop, need minimum 5. How Can I increase that?

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

    Artem Temos
    Keymaster

    Try to add the following PHP code snippet to the child theme functions.php file to do this

    add_filter(
    	'woodmart_product_gallery_settings',
    	function() {
    		return array(
    			'images_slider' => woodmart_is_main_product_images_carousel(),
    			'thumbs_slider' => array(
    				'enabled'  => woodmart_is_product_thumb_enabled(),
    				'position' => woodmart_get_opt( 'thums_position' ),
    				'items'    => array(
    					'desktop'          => 5,
    					'tablet_landscape' => 3,
    					'tablet'           => 4,
    					'mobile'           => 3,
    					'vertical_items'   => 3,
    				),
    			),
    		);
    	}
    );
    #224854

    Officialpandapanti
    Participant

    Can you please provide the complete contents for style.css sheet? I am making a child theme first so please provide me the details of style.css

    #224857

    Artem Temos
    Keymaster

    We have moved your reply to a new topic and it will be answered by our staff soon.

Tagged: ,

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