Answer the question
In order to leave comments, you need to log in
How to display video in product card in woocommerce?
Good evening.
In general, I use advanced custom fields in order to generate a field for inserting media in each product, and you need to insert this media into the list of product thumbnails and, of course, for it to work. This is how I display the field with the video, but I don’t quite understand how to display it correctly so that it would work normally.
I write the code in the file product-image.php
if( get_field('video') ):
the_field('video');
endif;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question