Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #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,
    Buddy

    #1072751

    Hey 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,
    Vinay

    #1073349

    How 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,
    Buddy

    #1073364
    #1074268

    Hi 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,
    Nikko

    #1074355

    Thanks 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,
    Buddy

    #1074514

    I 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 now

    looping videos are:

    #1075278

    Hi 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,
    Nikko

    #1075481

    Thanks, and please try again.
    Buddy

    #1075776

    Hi 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,
    Nikko

    #1076055

    Trying 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.
    Buddy

    #1077629

    Hi 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,
    Nikko

    #1077853

    No 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,
    Buddy

    #1078964

    Hi 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

Viewing 14 posts - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.