Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

190
Views
How to upload video in Shopify

I want to upload video in my shopify store my code has for loop

   <div class="product-slider-show">
      <div class="owl-carousel">
         {% for image in product.images %}
         <div class="swiper-product-image"> 
            <a class="cloud-zoom-gallery sub-image" id="product-image-options-" href="{{ image.src  | img_url: 'master' }}" title="{{ featured_img_alt }}"
               rel="useZoom: 'product-cloud-zoom', smallImage: '{{ image.src | img_url: 'master' }}'" data-pos="{{ forloop.index }}">
            <img {% if settings.lazyloading_enable %} class="lazyload" data-{% endif %}src="{{ image.src | img_url: 'master' }}" title="{{ featured_img_alt }}" alt="{{ featured_img_alt }}" />
            </a>
         </div>
         {% endfor %}
      </div>
   </div>

When I add video html to this code, video shows up next to each pictures.

What code should I use in this for loop, so that the video can appear alone at the end?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

if anyone else is having this problem. This code was my solution

{% for image in product.images %}
{% if forloop.first == true %}
<figure>            
   <img src="{{ image.src | img_url: '1024x1024' }}" alt="{{ image.alt | escape }}" class="product_variant_image">
</figure>
{% else %}
<figure>            
   <img src="{{ image.src | img_url: '1024x1024' }}" alt="{{ image.alt | escape }}">
</figure>
{% endif %}
{% endfor %}
{% for media in product.media %}
{% if media.media_type == 'video' %}
{{ media | video_tag: controls: true, preload: true, image_size: "768x" }}
{% endif %}
{% endfor %}
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!