Features

Single Product Galery Layout Change Only On Desktop

7mo agoClosed

Changeable single product galery layout at desktop only will be nice. I don’t want the mobile version to change. Thanks :)

4 comments

  1. Mavi Ekran7mo ago

    I added picture, i want it to appear separately on mobile and pc.

    1. Anonymous7mo ago

      Hello @Mavi,
      Could you please, try to add next code snippet to your child-theme/functions.php (recommended to upload such code using ftp connection)

      add_filter('theme_mod_product_gallery_type_et-desktop', function($value) {
      return in_array($value, array('one_image', 'double_image')) && wp_is_mobile() ? 'thumbnails_bottom' : $value;
      });

      This code should autochange one_image/double_image layout on mobile to the first one -> thumbnails_bottom

      P.S. if you need any assistance please, submit a topic on our forum -> https://www.8theme.com/forums/xstore-wordpress-support-forum/ because there you may send your access in private content which is not possible to do here.
      Regards, Jack Richardson

    2. Mavi Ekran7mo ago

      Thank you its worked

  2. Anonymous7mo ago

    Hello @Mavi Ekran

    Could you please, provide us an example (screenshot/gif/link) of what you are writing ? As you know it is always better one time to see than few times to hear :)

    Regards, Jack Richardson