In all my colour sections with YouTube video back grounds they started stopping at the end of the video and saying. “Video unavailable, this video is unavailable”
All plugins are up to date and I’ve tried turning them all off. Enfold is fully up to date and WordPress.
The YouTube video plays once so that’s fine and it’s not in a playlist and has no other videos set to play after it.
They where working fine for years but around the same time of updating WordPress and the enfold theme they have stopped looping. Unless that’s a coincidence and you guys have a fix please? Many thanks
Hey mmsdev,
We are aware of the problem, but we don’t have a solution at the moment. We’ll post any solutions or suggestions here, once we have them.
Best regards,
Rikard
Ok thanks.
Do you have a time scale on the fix?
Hi!
Thank you for the update.
We might have found the issue with the Youtube player. To fix it, please try this filter in the functions.php file to adjust the Youtube player and disable the playlist parameter, which might be preventing the video from looping.
add_filter("avf_youtube_video_data", function($data) {
unset($data["playlist"]);
return $data;
}, 10, 1);
We will provide the actual fix in the next patch.
Cheers!
Ismael
edited:
Thats now working, ill need to delete it when the next update come out though>?