Home Forums WoodMart support forum Product videos are not working

Product videos are not working

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #557540

    hofitd
    Participant

    Hi
    I have several products that video is dipslayed on the featured image and the videos are not working.
    I checked the video URL (Youtube) and it seems to be valid, so I’m not sure why the videos are not displayed.

    For exmaple – this product –
    https://www.smartliner.co.il/product/super-midi/
    has this video URL –
    https://www.youtube.com/watch?v=YbiUkUcOHhg

    and this product –
    https://www.smartliner.co.il/product/mincord/
    has this video url –
    https://www.youtube.com/watch?v=COKg6Ju5_2c

    I’m not sure why it’s not working.

    Thanks
    Hofit

    Attachments:
    You must be logged in to view attached files.
    #557628

    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. Let me know the result.

    Kind Regards

    #557663

    hofitd
    Participant

    Thanks it’s fixed.
    will it be fixed in the next version?

    #557692

    Luke Nielsen
    Keymaster

    Hello,

    In the 7.5 version, it should be fixed globally. So after the update, you can remove that custom.

    Kind Regards

    #557949

    hofitd
    Participant

    Hi
    What about Vimeo fix?
    I didn’t update the version yet.

    https://www.smartliner.co.il/product/speedylight/

    #558020

    Luke Nielsen
    Keymaster

    Hello,

    Please update it to the latest version and check that issue again. Do not forget to update the Core plugin as well.

    Then let me know.

    Kind Regards

    #559226

    hofitd
    Participant

    Hi
    After upgrading Vimeo is working, Youtube is not working (I removed the exitra JS code you gave me).
    After adding the JS code again, Youtube is working.
    So it seems it’s not completely fixed in the new version.

    Regards
    Hofit

    #559348

    Luke Nielsen
    Keymaster

    Hello,

    Please send me the URL link to such a product that uses video from Youtube.

    Thank you in advance.

    Kind Regards

    #559425

    hofitd
    Participant

    Hi Luke

    This is a product with a Youtube video.
    https://www.smartliner.co.il/product/mincord/

    I also created a video for you to see that it’s not working if the JS code is removed.
    https://www.awesomescreenshot.com/video/26953064?key=a6084814d853ab7d9dea3d4017217f71

    The current theme version is 7.5.1

    Regards
    Hofit

    #559540

    Luke Nielsen
    Keymaster

    Hello,

    Okay, I see. May I disable some 3rd party plugins for testing?

    Looking forward to collaborating with you!

    Kind Regards

    #559635

    hofitd
    Participant

    Hi
    Yes you may. Please just enable it again after you’re done.

    Thanks

    #560218

    Luke Nielsen
    Keymaster

    Hello,

    Looks like the issue is related to your customization in the child theme. You can be sure of that by enabling the child theme and disabling that custom JS that we provided.

    Kind Regards

    #560238

    hofitd
    Participant

    Hi

    Ok, thanks. I will check it.

    #560255

    Luke Nielsen
    Keymaster

    Hello,

    Okay, If there’s anything else you’d like to know, please don’t hesitate to ask.

    Have a good day!

    Kind Regards

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