Home › Forums › WoodMart support forum › YouTube videos on the main product image do not launch
YouTube videos on the main product image do not launch
- This topic has 10 replies, 2 voices, and was last updated 3 weeks, 6 days ago by Luke Nielsen.
-
AuthorPosts
-
October 23, 2024 at 2:11 pm #607071
bverne.freelanceParticipantDespite having inserted the links to my youtube videos for each of my products on the main image, the videos load in a vacuum and don’t launch.
Attachments:
You must be logged in to view attached files.October 23, 2024 at 2:22 pm #607079
bverne.freelanceParticipantapparently you\’re more reactive to answer to other peopel.
Attachments:
You must be logged in to view attached files.October 23, 2024 at 2:44 pm #607086
Luke NielsenKeymasterHello,
Sorry for the inconvenience. Usually, it takes a few hours to answer during working time (up to 24 hours) and 12-48 hours on weekends and holidays.
Please send me access to the admin panel and the URL link to that product with the video issue.
Looking forward to collaborating with you!
Kind Regards
October 23, 2024 at 2:46 pm #607089
bverne.freelanceParticipantYeah but 1 min for other people.
What and how do you want me to send?
The problem is on all products.
October 23, 2024 at 3:00 pm #607104
Luke NielsenKeymasterHello,
Send access via the private area – https://take.ms/V9bOS0 (that is below the message area). If you do not know your access, try to install a plugin related to “temporary access” to the admin panel and send me a temporary link to the account via the private area.
https://www.wpbeginner.com/plugins/how-to-create-temporary-login-for-wordpress-no-passwords/
Thank you for your time.
Kind Regards
- This reply was modified 3 weeks, 6 days ago by Luke Nielsen.
October 23, 2024 at 3:12 pm #607108
bverne.freelanceParticipantaccess
October 23, 2024 at 3:29 pm #607114
Luke NielsenKeymasterHello,
Add the code below in Theme Settings -> Custom JS -> On document ready:
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 check how it works.
Result: https://take.ms/wGKEI
Kind Regards
October 23, 2024 at 3:35 pm #607117
bverne.freelanceParticipantIt seems to work, thank you.
I have another request: when I open a product page, the main image and the 4 icons below the button are displayed in HUGE size for about a second. However, the icons have been imported at a small size.
It’s pretty ugly, do you know how to fix it?
Attachments:
You must be logged in to view attached files.October 23, 2024 at 4:01 pm #607122
Luke NielsenKeymasterHello,
First, I replicated that issue – https://take.ms/s7fblI then checked which element you use to show those icons and it’s the “Icon List” element – https://take.ms/ibrq9 which is related to Elementor itself and the reason why they are bigger at the beginning is that the Elementor connects its styles at the bottom of the page – https://take.ms/LJM09 so after fully loaded the page you see them normal because that CSS has been loaded at the end.
Kind Regards
October 23, 2024 at 4:06 pm #607123
bverne.freelanceParticipantOk got it, but isn’t there a way to make these icons appear normally? Because it makes the site look buggy.
October 23, 2024 at 4:15 pm #607124
Luke NielsenKeymasterHello,
We can’t customize it as this element is from Elementor. Just use our “Information box” element instead. For example, set the type as icon – https://take.ms/GF535, in the content area level only the “Content” field – https://take.ms/UDwdt, adjust alignment here – https://take.ms/035vL and the spacing between icon and text here – https://take.ms/G1ztB and the result will be similar.
Kind Regards
-
AuthorPosts
Tagged: video product
- You must be logged in to create new topics. Login / Register