Home › Forums › WoodMart support forum › Product videos are not working
Product videos are not working
- This topic has 13 replies, 2 voices, and was last updated 8 months, 4 weeks ago by Luke Nielsen.
-
AuthorPosts
-
April 16, 2024 at 9:40 am #557540
hofitdParticipantHi
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=YbiUkUcOHhgand this product –
https://www.smartliner.co.il/product/mincord/
has this video url –
https://www.youtube.com/watch?v=COKg6Ju5_2cI’m not sure why it’s not working.
Thanks
HofitAttachments:
You must be logged in to view attached files.April 16, 2024 at 11:57 am #557628
Luke NielsenKeymasterHello,
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
April 16, 2024 at 1:15 pm #557663
hofitdParticipantThanks it’s fixed.
will it be fixed in the next version?April 16, 2024 at 2:55 pm #557692
Luke NielsenKeymasterHello,
In the 7.5 version, it should be fixed globally. So after the update, you can remove that custom.
Kind Regards
April 17, 2024 at 12:43 pm #557949
hofitdParticipantHi
What about Vimeo fix?
I didn’t update the version yet.April 17, 2024 at 2:47 pm #558020
Luke NielsenKeymasterHello,
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
April 21, 2024 at 11:41 am #559226
hofitdParticipantHi
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
HofitApril 22, 2024 at 10:35 am #559348
Luke NielsenKeymasterHello,
Please send me the URL link to such a product that uses video from Youtube.
Thank you in advance.
Kind Regards
April 22, 2024 at 1:01 pm #559425
hofitdParticipantHi 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=a6084814d853ab7d9dea3d4017217f71The current theme version is 7.5.1
Regards
HofitApril 22, 2024 at 5:28 pm #559540
Luke NielsenKeymasterHello,
Okay, I see. May I disable some 3rd party plugins for testing?
Looking forward to collaborating with you!
Kind Regards
April 23, 2024 at 7:41 am #559635
hofitdParticipantHi
Yes you may. Please just enable it again after you’re done.Thanks
April 24, 2024 at 12:33 pm #560218
Luke NielsenKeymasterHello,
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
April 24, 2024 at 1:13 pm #560238
hofitdParticipantHi
Ok, thanks. I will check it.
April 24, 2024 at 2:11 pm #560255
Luke NielsenKeymasterHello,
Okay, If there’s anything else you’d like to know, please don’t hesitate to ask.
Have a good day!
Kind Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register