Shopify 如何将拇指图像作为单个幻灯片图像获取?

Shopify 如何将拇指图像作为单个幻灯片图像获取?,shopify,Shopify,我在移动设备中使用Brooklyn Shopify主题。主要特色图像在一张幻灯片中,所有拇指都在一张幻灯片中,但现在我希望每个拇指图像都像特色图像一样作为单一幻灯片放映图像。您可以使用一些CSS技巧和复制图像抓取来实现这一点 在Product.liquid文件中,复制按照您所说的使用Brooklyn主题获取的代码图像,我将为您提供相同的帮助 查找此代码的名称 <div class="grid product-single"> <div class="grid__item

我在移动设备中使用Brooklyn Shopify主题。主要特色图像在一张幻灯片中,所有拇指都在一张幻灯片中,但现在我希望每个拇指图像都像特色图像一样作为单一幻灯片放映图像。

您可以使用一些CSS技巧和复制图像抓取来实现这一点

Product.liquid
文件中,复制按照您所说的使用Brooklyn主题获取的代码图像,我将为您提供相同的帮助

查找此代码的名称

<div class="grid product-single">
    <div class="grid__item large--seven-twelfths medium--seven-twelfths text-center">
      <div class="product-single__photos">
        {% assign featured_image = current_variant.featured_image | default: product.featured_image %}

        {% comment %}
          Display current variant image, or default first
        {% endcomment %}
        <div class="feature_image top_feature_image">
         <div class="product-single__photo-wrapper">
          <img class="product-single__photo" id="ProductPhotoImg" src="{{ featured_image | img_url: 'grande' }}" {% if settings.product_zoom_enable %}data-mfp-src="{{ featured_image | img_url: 'grande' }}"{% endif %} alt="{{ featured_image.alt | escape }}" data-image-id="{{ featured_image.id }}">
        </div>
        </div>

        {% comment %}
          Display rest of product images, not repeating the featured one
        {% endcomment %}
         <div class="thumb_images">
           {% for image in product.images | limit:4 %}
            <div class="product-single__photo-wrapper">
              <img class="product-single__photo" src="{{ image.src | img_url: 'grande' }}" {% if settings.product_zoom_enable %}data-mfp-src="{{ image.src | img_url: '1024x1024' }}"{% endif %} alt="{{ image.alt | escape }}" data-image-id="{{ image.id }}">
            </div>
        {% endfor %}
        </div>

      </div>
    </div>
.desk
是我的定制课程

在移动式ie 767px中添加此项

.product-single__photo-wrapper.desk {
  display: block;
}
  .thumb_images {
  display: none !important;
}
  .slick-dots > li:last-child, .slick-dots > li:nth-last-child(2) {
  display: none;
}

这将解决您的需求。

您可以使用一些CSS技巧和复制图像抓取来实现这一点

Product.liquid
文件中,复制按照您所说的使用Brooklyn主题获取的代码图像,我将为您提供相同的帮助

查找此代码的名称

<div class="grid product-single">
    <div class="grid__item large--seven-twelfths medium--seven-twelfths text-center">
      <div class="product-single__photos">
        {% assign featured_image = current_variant.featured_image | default: product.featured_image %}

        {% comment %}
          Display current variant image, or default first
        {% endcomment %}
        <div class="feature_image top_feature_image">
         <div class="product-single__photo-wrapper">
          <img class="product-single__photo" id="ProductPhotoImg" src="{{ featured_image | img_url: 'grande' }}" {% if settings.product_zoom_enable %}data-mfp-src="{{ featured_image | img_url: 'grande' }}"{% endif %} alt="{{ featured_image.alt | escape }}" data-image-id="{{ featured_image.id }}">
        </div>
        </div>

        {% comment %}
          Display rest of product images, not repeating the featured one
        {% endcomment %}
         <div class="thumb_images">
           {% for image in product.images | limit:4 %}
            <div class="product-single__photo-wrapper">
              <img class="product-single__photo" src="{{ image.src | img_url: 'grande' }}" {% if settings.product_zoom_enable %}data-mfp-src="{{ image.src | img_url: '1024x1024' }}"{% endif %} alt="{{ image.alt | escape }}" data-image-id="{{ image.id }}">
            </div>
        {% endfor %}
        </div>

      </div>
    </div>
.desk
是我的定制课程

在移动式ie 767px中添加此项

.product-single__photo-wrapper.desk {
  display: block;
}
  .thumb_images {
  display: none !important;
}
  .slick-dots > li:last-child, .slick-dots > li:nth-last-child(2) {
  display: none;
}
这将解决您的需求