>> Check out our new theme: Benous - Elementor MultiPurpose WordPress Theme <<
If you can't submit the support ticket here, please use the contact form at THEMELOGI profile page on ThemeForest

Tickets › Tickets › Navian › Disable Video Loop

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #11518

    Good morning. I am using the Navian Theme for my website. For the homepage I have a video header, which works great, but I am not able to stop the video loop. It keeps looping which is a bit annoying. I was wondering if there is a way to preven the video from looping. I am looking forward to your answer.

    Website can be found here: http://wezzbite.nl/wp_firsteuropean

    Thank you!

    Regards,

    Wesley

    #11523
    Danny
    Supporter

    Hi there,

    Thanks for writing in!

    In this case, please open up the tlg_header_single.php file in wp-content/plugins/tlg_framework/includes/vc_shortcodes folder, find the code below (around line 285) :

    $header_bg .= '<div class="video-background-content"><video autoplay muted loop><source src="'. esc_url($bg_video_url) .'" type="video/mp4"><source src="'. esc_url($bg_video_url_2) .'" type="video/webm"></video></div><div '.$style_overlay.' class="background-overlay"></div>';

    .. and change it into this (remove the “loop” in video tag – “autoplay muted loop” => “autoplay muted“) :

    $header_bg .= '<div class="video-background-content"><video autoplay muted><source src="'. esc_url($bg_video_url) .'" type="video/mp4"><source src="'. esc_url($bg_video_url_2) .'" type="video/webm"></video></div><div '.$style_overlay.' class="background-overlay"></div>';

    Hope this helps,
    Danny

    #11526

    Hi Danny. Thank you for your quick reply. I have updated the file, cleared my browser cache etc, but somehow the video keeps looping. Screenshot.

    #11542
    Danny
    Supporter

    Hi there,

    Thanks for your info!

    In this case, please open up the vc_row.php in themes/navian/visualcomposer/vc_templates folder, find the code below (line 107) :

    echo 'video' == $tlg_bg_video_style ? '<div class="video-background-content"><video autoplay muted loop playsinline><source src="'. esc_url($tlg_bg_video_url) .'" type="video/mp4"><source src="'. esc_url($tlg_bg_video_url_2) .'" type="video/webm"></video></div><div '.$style_overlay.' class="background-overlay"></div>' : '';

    … and change it into this, remove the “loop”, “autoplay muted loop playsinline” => “autoplay muted playsinline”:

    echo 'video' == $tlg_bg_video_style ? '<div class="video-background-content"><video autoplay muted playsinline><source src="'. esc_url($tlg_bg_video_url) .'" type="video/mp4"><source src="'. esc_url($tlg_bg_video_url_2) .'" type="video/webm"></video></div><div '.$style_overlay.' class="background-overlay"></div>' : '';

    If the problem persists, share us the admin account of your site so we can check it for you.

    Best regards,
    Danny

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