-
AuthorPosts
-
February 28, 2019 at 4:24 pm #1072669
When using the video element, is there a way to make the video show full screen?
Page in question https://woodruffway.com/welcome-home-to-swallowtail-flats/Thanks,
BuddyFebruary 28, 2019 at 9:12 pm #1072751Hey buddy1,
Thank you for contacting us.
At the moment there is no easy way to add this feature to self-hosted videos but an alternate solution is to upload the video to youtube and link it back to your site this way you can enable all the youtube features :)
Best regards,
VinayMarch 1, 2019 at 7:06 pm #1073349How do I stop the video from looping. I have changed loop to false
‘shortcode’ => ‘av_slideshow’,
‘content’ => ”,
‘attr’ => array( ‘id’=>”,
‘video’=>$video ,
‘slide_type’ => ‘video’,
‘video_mute’ => true,
‘video_loop’ => false,
‘video_ratio’ => $video_ratio,
‘video_controls’ => ‘enabled’,
‘video_section_bg’ => true,
‘video_format’=> ”,
‘video_mobile’ =>”,
‘video_mobile_disabled’=> $video_mobile_disabled
thanks,
BuddyMarch 1, 2019 at 7:52 pm #1073364The looping video is https://woodruffway.com/welcome-home-to-swallowtail-flats-2-3/
thanks,
BuddyMarch 4, 2019 at 10:37 am #1074268Hi Buddy,
In your child theme’s shortcode folder, create a new folder called video then copy video.php from enfold > config-templatebuilder > avia-shortcodes > video folder and paste it inside the video folder of the child theme. Then modify line 387 of video.php:
$output = avia_html5_video_embed($src, $fallback_img);
to:
$types = array('webm' => 'type="video/webm"', 'mp4' => 'type="video/mp4"', 'ogv' => 'type="video/ogg"'); $attributes = array('autoplay' => 0, 'loop' => 0, 'preload' => '' ); $output = avia_html5_video_embed($src, $fallback_img, $types, $attributes);
That should stop the video from looping in the Video Element.
Best regards,
NikkoMarch 4, 2019 at 1:36 pm #1074355Thanks so much for quick reply, customer was upset. I am having another problem with this page
There are two buttons below video, Contact Me and Apply Here. They show up when I view page but when customer view the page the buttons do not show. Would you please check and see what’s happening?
Login is above.
Thanks,
BuddyMarch 4, 2019 at 9:05 pm #1074514I did not have shortcode folder in child them so I created one in ftp and then copied and modified video.php and saved to video.
uploaded video to shortcode file. videos still loop. closed dashboard and reopened but still get the looping.
Can you possibly check and see if you can fix.
thank you,
Buddy
forget images they are working nowlooping videos are:
March 6, 2019 at 6:07 am #1075278Hi Buddy,
I tried the credentials you gave both the admin access and sftp however it doesn’t work when I tried.
It returns this error:Error: ssh_init: Host does not exist Error: Could not connect to server
I also checked if it would work using ftp but unfortunately it doesn’t work as well.
Best regards,
NikkoMarch 6, 2019 at 12:52 pm #1075481Thanks, and please try again.
BuddyMarch 7, 2019 at 6:20 am #1075776Hi Buddy,
Thanks for the admin access. There are two things that are needed first, please change the shortcode folder to shortcodes (I apologize that was my mistake).
Then you’ll need to add this in functions.php of your child theme:add_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1); function avia_include_shortcode_template($paths) { $template_url = get_stylesheet_directory(); array_unshift($paths, $template_url.'/shortcodes/'); return $paths; }
For more information you can check it in our docs: https://kriesi.at/documentation/enfold/intro-to-layout-builder/#add-elements-to-alb
Best regards,
NikkoMarch 7, 2019 at 5:31 pm #1076055Trying to update Theme Functions and get this error:
Your PHP code changes were rolled back due to an error on line 387 of file wp-content/themes/enfold-child/shortcodes/video/video.php. Please fix and try saving again.
syntax error, unexpected ‘=’, expecting ‘)’Line 387 is:
$types = array(‘webm’ => ‘type=”video/webm”‘, ‘mp4’ => ‘type=”video/mp4″‘, ‘ogv’ => ‘type=”video/ogg”‘); $attributes = array(‘autoplay’ => 0, ‘loop’ => 0, ‘preload’ => ” );
What do I change?
Thanks and sorry to be such a bother.
BuddyMarch 12, 2019 at 5:21 am #1077629Hi Buddy,
I apologize for the delayed response.
Can you try to manually replace the single and double quotes? sometimes those cause some issues even when the code is correct.Best regards,
NikkoMarch 12, 2019 at 4:05 pm #1077853No problem, thanks for getting back to me. That was a week’s work changing all the quotes on functions.php and video.php but video still loops. What else can I try?
Thanks,
BuddyMarch 15, 2019 at 1:51 am #1078964Hi Buddy,
I checked on it again and the problem is in the screenshot (link in private content).
I tried to modify it for you however I’m getting the error, the second screenshot in private content contains the right code but I could not make the changes because of the error shown in the screenshot.
The problem is the=>
is replaced with (without spaces)
= & g t ;
as shown in the screenshot.
Also in the child theme’s functions.php, this code is still not added yet:add_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1); function avia_include_shortcode_template($paths) { $template_url = get_stylesheet_directory(); array_unshift($paths, $template_url.'/shortcodes/'); return $paths; }
Best regards,
Nikko -
AuthorPosts
- You must be logged in to reply to this topic.