Home › Forums › WoodMart support forum › Product image Gallery Thumbnail Size and Number.
Product image Gallery Thumbnail Size and Number.
- This topic has 7 replies, 2 voices, and was last updated 2 years, 11 months ago by
Aizaz Imtiaz Awan.
-
AuthorPosts
-
March 31, 2022 at 2:52 pm #365500
[email protected]ParticipantDear Sir/Madam,
I have tried several ways to change the size and number of product image gallery thumbnails and I also regenerated all thumbnails using the mentioned plugin in the theme options area. Please help me solve this issue. some screenshots are attached.
Attachments:
You must be logged in to view attached files.April 1, 2022 at 7:22 am #365627
Aizaz Imtiaz AwanKeymasterHello,
Please provide the admin panel login details of the website to check it myself and help you out accordingly.
Best Regards
April 1, 2022 at 2:52 pm #365744
[email protected]ParticipantThanks for your response. The login credentials are typed below. (in Extra information (visible to moderators only))
April 2, 2022 at 6:13 am #365832
Aizaz Imtiaz AwanKeymasterHello,
The issue seems to be caused by the SG optimizer plugin. Please deactivate the plugin then try Regenerating the thumbnails and check back.
Best Regards
April 4, 2022 at 3:59 pm #366286
[email protected]ParticipantDear Developer,
I believe the resolution of thumbnails changing now but the actual size and number of thumbnails are still the same.
I need the product gallery to have at least 5 – 6 thumbnails in the slider. the image attached explained what I need to achieve. Please advise.Best regards,
Attachments:
You must be logged in to view attached files.April 5, 2022 at 6:35 am #366377
Aizaz Imtiaz AwanKeymasterHello,
Please try to add this code to the functions.php of the child theme:
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' => 6, 'tablet_landscape' => 3, 'tablet' => 4, 'mobile' => 3, 'vertical_items' => 3, ), ), ); } );
Best Regards
April 5, 2022 at 3:15 pm #366510
[email protected]ParticipantThanks for your response. unfortunately, the code provided returns the following error on the entire website. Just to let you know I am not using the child theme. if you can provide me with a function for the main theme. I am using the snippet injector plugin to implement the code provided.
Attachments:
You must be logged in to view attached files.April 6, 2022 at 11:13 am #366643
Aizaz Imtiaz AwanKeymasterHello,
Please try to replace this old code with the following snippet
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' => 6, ), ), ); } );
Best Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register