Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Fotis

    (@markwaregr)

    Hi there,
    Thank you for your feedback!
    You can not use videos like this yet, but this is a nice recommendation.
    You can try a more global solution though, but It will apply for all videos in your Site!

    Open your themes functions.php and add this

    
    add_filter('oembed_result', 'modify_youtube_embed_url');
    function modify_youtube_embed_url($html) {
           return str_replace("?feature=oembed", "?feature=oembed&autoplay=1&showinfo=0&controls=0&loop=1&rel=0", $html);
    
    }

    inside adding any feature you might need or not.

    Remember this will apply in all Videos, so you might need to restrict it in a certain page like this

    
    function modify_youtube_embed_url($html) {
       if(is_page(XXX)){
           return str_replace("?feature=oembed", "?feature=oembed&autoplay=1&showinfo=0&controls=0&loop=1&rel=0", $html);
       }else{
          return $html;
       }
       return $html;
    }
    add_filter('oembed_result', 'modify_youtube_embed_url');
    

    replacing XXX with the page ID you have the Elementor Plus Video Gallery module.
    Have a look here https://www.cssigniter.com/kb/how-to-find-the-post-id/ on finding your post/page ID.

    Let me know if this helps.

    Thread Starter comichans

    (@comichans)

    Thanks for the workaround Mark!

    Plugin Support Fotis

    (@markwaregr)

    I’d like to ask you, if you like the theme and could take a minute to review it here it would help us a lot!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Youtube options’ is closed to new replies.