Solved: Product Video Not Working in Magento 2
According to Google, 55% of consumers use videos for purchase decisions.
Video content has more ability to engage with the audience of all age groups and personas. A product video is an effective tool to demonstrate your product, particularly when a consumer cannot check it physically while buying from an online store.
Increase the conversion rate with the use of product videos that helps potential customers understand the features of your product and other useful information.
Moreover, Google favours a page with the product video included in the product page as it enhances the user experience.
Video content is likely to be shared and clicked more often than a text. It is because watching a video requires fewer efforts than reading long product descriptions!
The default Magento 2 allows adding videos to the product page.
However, sometimes, it may happen that in spite of adding product video from the admin panel, it is not displayed in the frontend. Only the video preview image is shown as:
Follow the below method for the solution to this issue.
Solution for Product Video Not Working in Magento 2:
-
- Open catalog_product_view.xml from your theme folder resided at app/design/frontend/vendor/theme/Magento_Catalog/layout/catalog_product_view.xml
- Inside the catalog_product_view.xml file, search for the container Name “product.info.media“.
- Now add the below code under “product.info.media” container
<block class="Magento\ProductVideo\Block\Product\View\Gallery" name="product.info.media.video" after="product.info.media.image" template="product/view/gallery.phtml"/>
“product.info.media” container will look like below xml after updating:
1 |
-
- At last, refresh the Magento 2 cache and you should get the product video in product detail page in the frontend.
Any doubts about this solution?
If so, please mention them in the Comments section below.
I’d be happy to help you out.
Also, do share the solution with Magento Community via social media.
Thank you.
2 Comments
This is not working.
Please let us know the exact error you are facing?