Home Forums WoodMart support forum Increase thumbnail image number

Increase thumbnail image number

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #345461

    critoyact
    Participant

    Hello!
    On single product page, I need to add more thumbnail images, now there’re 3, I would like to have 6.

    Thanks in advance

    #345508

    Hello,

    Unfortunately, it is not possible. The image gallery shows 3 images on the left, and 4 images on the bottom, you can add more and they would slide.

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

    Best Regards

    #345613

    critoyact
    Participant

    Hi Elise, thanks for your answer,

    I was looking to get some support on adding some custom code on my child theme’s functions.php as I saw Xtemos’s team did on this tickets:

    https://xtemos.com/forums/topic/increase-the-number-of-product-thumbnails-%d1%83%d0%b2%d0%b5%d0%bb%d0%b8%d1%87%d0%b8%d1%82%d1%8c-%d0%ba%d0%be%d0%bb-%d0%bc%d0%b8%d0%bd%d0%b8%d0%b0%d1%82%d1%8e%d1%80-%d1%82%d0%be%d0%b2%d0%b0%d1%80/

    https://xtemos.com/forums/topic/increase-the-number-of-thumbnail-images-in-a-product-page/

    Unfortunately I’ve already tried them and neighter of this codes worked for me. But Im confident that with a little bit help from you, we can achieve this.

    Can I kindly ask you to check this out? also check the private content.

    Thanks,

    Cristian.

    • This reply was modified 2 years, 3 months ago by critoyact.
    #345856

    Hello,

    Please 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,
                    ),
                ),
            );
        }
    );

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

    Best Regards

    • This reply was modified 2 years, 3 months ago by Elise Noromit.
    #345858

    P.S. Please take the code from the recent version.

    Best Regards

    #346241

    critoyact
    Participant

    Hi, thanks for your reply and support,

    Unfortunately, it doesn’t seems to work.
    I have added the code on functions.php (child theme)
    but on the single product page, there’s still only 3 thumbnails, instead of 6.

    Thanks for checking it out.

    #346740

    Hello,

    Please change this value as per your needs: vertical_items' => 3,

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

    Best Regards

    #346934

    critoyact
    Participant

    Hello,
    Thanks a lot! it works.

    Wish you a great day,

    C

    #346941

    You are welcome! We are here to help.

    Wish you a wonderful day!

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

The topic ‘Increase thumbnail image number’ is closed to new replies.