Issue with Product Video Gallery in WoodMart
-
Hi WoodMart Team,
I hope you’re doing well.
I’m experiencing an issue with the product video gallery. When I add a video link, it keeps buffering and doesn’t display properly. However, when I add the link in the custom metabox at the bottom of the product settings page, it works fine.
Could you kindly check what might be causing this issue? Here’s the link for reference: [Insert Link]
Looking forward to your support.
Best regards,
Arash
Attachments:
You must be
logged in to view attached files.
Hello,
Thank you so much for purchasing our theme and contacting our support center.
To fix this issue, try to add the following code snippet to the Custom JS on document ready area in Theme Settings.
if ( (document.querySelector("script[src*='googletagmanager.com']")|| document.querySelector('#www-widgetapi-script') ) && document.querySelector('.woocommerce-product-gallery .wd-carousel-item.wd-with-video') ) {
const tag = document.createElement( 'script' );
tag.src = '//www.youtube.com/iframe_api';
const firstScriptTag = document.getElementsByTagName( 'script' )[0];
firstScriptTag.parentNode.insertBefore( tag, firstScriptTag );
}
Kind Regards