Tagged: video loop
Hi,
I have a mp4 video on my page. Self hosted and inserted with the Avia builder. Enfold theme version 4.6.2
The video loops. I would like to disable this.
I found another thread with a fix but as I understand this was for an older Enfold version and this issue should have been resolved in the version I use.
Can you help me out ?
Thanks
Hi marcusss,
We apologize for the delayed response.
In your child theme, please do the following: https://kriesi.at/documentation/enfold/intro-to-layout-builder/#add-elements-to-alb
Then copy the video.php file from the Enfold theme to your child theme’s shortcodes folder.
Finally edit video.php on your child theme and look for this code (line 347 in Enfold 4.6.2):
$video_html_raw = avia_html5_video_embed( $src, $fallback_img );
replace it with:
$video_html_raw = avia_html5_video_embed( $src, $fallback_img, array( 'webm' => 'type="video/webm"', 'mp4' => 'type="video/mp4"', 'ogv' => 'type="video/ogg"' ), array( 'autoplay' => 0, 'loop' => 0, 'preload' => '', 'muted' => '' ) );
Best regards,
Nikko
Hi Nikko,
Your solution works, thanks !
Hi marcusss,
We’re glad that we could help :)
Thanks for using Enfold and have a great day!
Best regards,
Nikko