Home Forums WoodMart support forum Videos not working

Videos not working

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

    Mr Mobility
    Participant

    I have added some video’s on products via YouTube links and they do not work. It just keeps loading but never shows

    #584258

    Luke Nielsen
    Member

    Hello,

    Is there any chance that you could give me access to the dashboard area so I can have a look at the settings on your website, please?

    Kind Regards

    #584433

    Mr Mobility
    Participant

    Yes, sure

    #584476

    Luke Nielsen
    Member

    Hello,

    Add the code below into 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 );
    }

    Clear the cache and recheck the issue.

    Kind Regards

    #585145

    Mr Mobility
    Participant

    It now works on other products except this one: https://mrmobility.co.za/product/milano-riser-recliner-dr-mobility/

    #585149

    Luke Nielsen
    Member

    Hello,

    The above product doesn’t have a video – https://take.ms/br5Ky

    I look forward to hearing back.

    Kind Regards

    #585150

    Mr Mobility
    Participant

    I tried to upload this one but it doesn’t work: https://youtu.be/wPBQBkPwzJE?feature=shared

    #585288

    Luke Nielsen
    Member

    Hello,

    On my side it works well – https://take.ms/9xNki

    If there’s anything else we can do, please get in touch.

    Kind Regards

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