Documentation

How to Add Media/Video to Your WooCommerce Product Gallery


With WooThumbs you can embed media directly into the product gallery. This will then be played within the gallery itself.

With WooThumbs, you can add: 

  • oEmbed based media (YouTube, Vimeo, Soundcloud, and more)
  • Embedded HTML
  • Self-hosted videos 

Let’s take a look at all three of them one-by-one. 

1. oEmbed Based Media

There are a number of oEmbed-based media sites that you can use with WooThumbs. Youtube and Vimeo are the most popular ones, but you can see the full list of supported oEmbed sites here.

In this article, we’ll be using YouTube as an example. 

The first step is to copy the URL of the oEmbed media you want to add to your product gallery. In this case, the YouTube video URL.

YouTube URL

Once you have your URL, we’ll add it to your product of choice.

To do this, take the following steps:

  1. From your WordPress dashboard, go to Products > All Products and select the product you wish to add the URL to.
  2. Scroll down to the Product gallery section of the Edit product page (this is usually found under the Product image section) and click the Add product gallery images link.
    • At this point, you’ll need to upload a thumbnail image of the video you want to show as the featured image, or you can use an existing image in your media gallery.
    • This will act as a preview image in your WooCommerce product gallery but when clicked will show only the embedded media in your product image gallery.
    • The size of this image depends on your theme settings.
add product gallery images
  1. Upload your image to the Media Library and add your media URL (in this case, YouTube URL) to the Media URL section under the WOOTHUMBS MEDIA DETAILS heading.
  1. You can also change the aspect ratio of the image in the Aspect Ratio field if you need to.
add media URL
  1. Once you’re happy, click the blue Add to gallery button and the video will be added to your product gallery.
video added to gallery
  1. Lastly, scroll to the top of the page and click the blue Update button in the Publish section to make your changes live.
video in product gallery woocommerce

2. Embedded HTML

If you’d like to add a 360 VR image, video, or external image to your product gallery, then you can do so with WooThumbs.

By adding a relevant URL to the Media URL field (see how to do this in the above section), WooThumbs will embed it as an iframe.

For example, you can add this link in the Media URL field: https://v1.pixriot.com/?spin=439272bab6/Capsules/Capsule%20Spinner%202&t=1581451197

This link will then create an interactive 360 image embedded right into the WooThumbs gallery. It will look a little something like this:

example video thumbnail

3. Self Hosted Video

If you don’t want to use any third-party service like Youtube or Vimeo, you can choose to self-host your videos, as long as they are in the MP4 video format. 

To do this, take the following steps:

  1. From your WordPress dashboard, go to Products > All Products and select the product you wish to add the URL to.
  2. Scroll down to the Product gallery section of the Edit product page (this is usually found under the Product image section) and click the Add product gallery images link.
    • Again you’ll need to upload a thumbnail image for the video.
add self-hosted video
  1. Once you’ve selected your thumbnail image, click the Attach MP4 button in the WOOTHUMBS MEDIA DETAILS section.
attach mp4
  1. Next, set your aspect ratio. Our images are square, so we have set this to 1:1. Pick whichever suits your store.
  2. Then select or upload your MP4 video to the Media Library.
select video
  1. Once you’re happy, click the blue Attach MP4 button and the video will be added to your product gallery.
self hosted video woocommerce
  1. Lastly, scroll to the top of the page and click the blue Update button in the Publish section to make your changes live.
self hosted video woothumbs

Things to note:

  • You can add media to as many images as you like in your product gallery.
  • You can also add media to your additional variation images.
  • The image you add media to will only be used as a thumbnail.
  • The media will still be available in fullscreen mode.
  • When viewing a media slide, the prev/next and fullscreen icons are disabled. This means it works best when you have thumbnail navigation enabled.

Are you using WooThumbs for WooCommerce yet?

Start your 14-day free trial right now and get instant access to the features described in this article.

or learn more

Was this helpful?

Please let us know if this article was useful. It is the best way to ensure our documentation is as helpful as possible.

WooThumbs for WooCommerce

WooThumbs for WooCommerce

Not got the plugin yet? Get instant access right now, free for 14 days.

or learn more

Still need help?

If you haven't found what you're looking for in our documentation, please contact support.

Get Support