Features

Single Product page thumbnail size control for mobile

7mo agoIn Review

Add thumbnail column edit option for mobile. Currently this is available only for desktop.
I have set 7 thumbnail for single product page. It worked for the desktop but in mobile view it is still 4 thumbnail.

https://prnt.sc/CUiYXvs4OF3k

2 comments

  1. Anonymous7mo ago

    Hello @Kazi Sabit,
    Thanks for the information !
    Let's see how popular your request will be before implementing such option.
    For now you may add next php snippet to your child-theme/functions.php
    add_filter('theme_mod_product_thumbnails_columns_et-desktop', function ($value) {
    return get_query_var('is_mobile', false) ? 6 : $value;
    });
    6 - is the value you want to show on mobile. Set any you need to.
    Or you may rewrite xstore/woocommerce/single-product/product-image.php or xstore/woocommerce/single-product/product-image.php (if you use Single Product builder) and change the value to your hardcode one -> https://prnt.sc/IhDTiSixDwer or https://prnt.sc/P9aBskK1e5ca (if you use Single Product builder)
    If you have any support questions please, contact us on our support forum -> https://www.8theme.com/forums/xstore-wordpress-support-forum/
    Thanks for understanding !

    1. I don't know how to add this code. So I will wait until you add this function in store customization panel.