-
AuthorPosts
-
September 6, 2019 at 4:24 pm #1134985
Hello everybody,
I’m trying to loop a video in the background of a color section.
The video is in my media library.
Is there any way to do this ?here is the links to the pages :
– https://www.ita-moulding-process.com/bois-moule/
– https://www.ita-moulding-process.com/mousse-moulee/Thank you
September 9, 2019 at 10:20 pm #1136230Hey Underkult,
Yes, you can add it on the ALB elements. Have you tried it? What error you have had?
Best regards,
BasilisSeptember 10, 2019 at 11:37 am #1136493Hi Basilis,
I just want my videos to loop but instead they play just once and at the end, the section display a big black box.
I tried in background of color sections and with sliders.
Best Regards,September 13, 2019 at 4:35 am #1137761Hi,
The video should loop by default, but you may need to upload it to Youtube or Vimeo.
You can also try and edit the themes\enfold\framework\php\function-set-avia-frontend.php, look for this code around line 693:
$output .= '<video class="avia_video" '.$image.' '.$autoplay.' '.$loop.' '.$metadata.' '.$muted.' controls id="'.$uid.'" >';
Just make sure that the loop attribute is set.
$output .= '<video class="avia_video" '.$image.' '.$autoplay.' loop '.$metadata.' '.$muted.' controls id="'.$uid.'" >';
Best regards,
IsmaelOctober 7, 2019 at 11:29 am #1145720Hi there,
I have licensed two copies of the Enfold theme so far and I have the opposite problem. I DO NOT want the video to be looped and I want to autostart one self-hosted video. These are two very essential parameters that MUST BE ABLE to be set for online video. No matter if self-hosted or serviced. I also want the same behavior on mobile devices.
I noticed that you helped lots of individual problems with “Try editing the code in the theme folder /Enfold/…” But actually I’m using a child theme and I want to profit from future theme updates WITHOUT fiddling in all that code again.
So, can you please give advice, how to control videos used with Enfold theme, without modifying original (parent) theme code! This cannot be true to provide a video support within your theme with that poor amount of options. You drop all the most important control elements for embedding videos in your theme.
Can you please add proper options for the video element in the next theme update? And can you please provide that as soon as possible?
Thank you for your help in advance.
Best regards,
ChrisP.S. Default Volume, and “Controls” is also quite essential.
- This reply was modified 5 years, 2 months ago by Scorp1.
October 9, 2019 at 7:01 am #1146398Hi,
Thank you for the inquiry.
This is possible, but we can’t change the setting of the video element by overriding the scripts in the child theme. We have to modify parent theme files.
wp-content\themes\enfold\framework\php\function-set-avia-frontend.php: https://pastebin.com/m9Bzv04Z
wp-content\themes\enfold\config-templatebuilder\avia-shortcodes\video\video.php: https://pastebin.com/pz44LdviReplace the content of the files with the designated pastebins. This will add new options in the video element.
Best regards,
IsmaelOctober 9, 2019 at 12:01 pm #1146484Thank you, Ismael, for the pastebins. So, I assume I have to repeat this after every parent theme update, right?
Can’t you update the theme with proper options for the video shortcode respectively the clickable options in the advanced layout builder? These video control options are essential and might be set differently for each video you embed…October 11, 2019 at 4:25 am #1146996Hi,
Thank you for the update.
We’ll forward the request to the team for further considerations. For now, you have to do the above modifications. Thank you for your patience.
Best regards,
IsmaelOctober 17, 2019 at 10:37 am #1148861 -
AuthorPosts
- You must be logged in to reply to this topic.