frickmic
Forum Replies Created
-
I applied a javascript (chatgpt gave me this), and probably the issue is fixed now, but could you confirm this should have been the reason? Thank you.
document.addEventListener(‘DOMContentLoaded’, function () {
const video = document.querySelector(‘.woocommerce-product-gallery__wrapper video’);
if (video) {
setTimeout(() => {
video.load();
}, 300); // Add slight delay to fix render timing
}
});Now I have a new problem. When clicking on the video for the first time on the page, it is cut off to about 1/3 the height it should be. Only on page reload it shows full height. Can’t seem to resolve it. Is this a plugin fix or theme issue? Thx for continued support on this.
Thank you for the response. This actually didn’t fix it, but unclicking the settings in your plugin to use the theme’s size actually fixed it suddenly.
Maybe it’s worth adding an option into the plugin that let’s you set the size of the video manually or inherit from other gallery pictures would be great.Another question: The Lightbox isn’t working for the videos when clicking on it. It works for Pictures, but not for Video. Using the Woocommerce 3.0 lightbox doesn’t even give me the option to slide to the video, and when using the flatome lightbox it just shows the item is not available. Any way to include the video in a lightbox as well when clicking on it?
Thank you