Home Forums WoodMart support forum Video on the product page does not load

Video on the product page does not load

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #555725

    liat140
    Participant

    This is a new website using elementor as a page builder
    The YouTube video does not load, even though it is a very short video of 8 sec.
    Since it is a jewelry site, I can’t reduce the video quality

    #555759

    Luke Nielsen
    Keymaster

    Hello,

    Please disable all plugins except these ones:

    Elementor or WPBackary
    Woodmart Core
    WooCommerce
    Enable the Parent theme

    Then activate the plugins one by one, checking the issue to detect which one causes the problem.

    Let me know the result.

    Kind Regards

    #555799

    liat140
    Participant

    I did what you asked me to do
    and unfortunately, the problem is caused by Elementor Pro
    Is there any chance the problem is due to the hosting resources?

    #555946

    Luke Nielsen
    Keymaster

    Hello,

    Please give me access to the admin panel – https://prnt.sc/mJXPYExUejqM

    Thank you in advance.

    Kind Regards

    #557354

    liat140
    Participant

    Hi
    The access has been granted
    Sorry it took time

    #557559

    Luke Nielsen
    Keymaster

    Hello,

    Please add the following code in the “On document ready” area in Theme Settings -> Custom JS:

    if ( 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 );
    }

    Then clear the cache and recheck the issue.

    Kind Regards

    #557638

    liat140
    Participant

    Thank you very much
    It works now
    Until the next Elemntor Pro version 🙂

    #557687

    Luke Nielsen
    Keymaster

    Hello,

    In the 7.5 version of our theme, this fix will be available by default.

    If you have any additional questions, let me know, or may I close this topic?

    Thank you fro your time.

    Kind Regards

Viewing 8 posts - 1 through 8 (of 8 total)