Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1411479

    Hey There,

    I would like to place a fullwidth Video in the Background of my first Page.
    I uploaded the (minimized, short) Video and placed it in the Backound of a color Section.
    Sadly, even though it is a short Video I just uploaded for testing, i see a loading icon.
    Everytime the Video ends, it loads again.

    what can I do to optimize this?

    Thank you!
    Monika

    #1411638

    Hey Monika,
    Thank you for your patience and the link to your site, to hide the video loader I added this css to your WordPress ▸ Customize ▸ Additional CSS

    /*hide video loader*/
    #top .mejs-overlay-loading {
        display: none !important;
    }

    To make the video not loop I edited your enfold/config-templatebuilder/avia-shortcodes/section.php on line 1581 ‘video_loop’ to False
    Enfold_Support_2457.jpeg
    To add this to your child theme so you won’t lose the change after your next update, create a directory in your child theme called shortcodes, then create a copy of the section.php file inside.
    Then add this code to your child theme functions.php:

    function avia_include_shortcode_template($paths)
    {
      $template_url = get_stylesheet_directory();
          array_unshift($paths, $template_url.'/shortcodes/');
    
      return $paths;
    }
    add_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1);

    Best regards,
    Mike

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