You are looking to youtube responsive video then you no need to worries if you are using Divi theme or Divi builder
Just add below PHP script condition on located file and enjoy
File Location : Divi\includes\builder\module\Video.php
Line No: 172
Code :
$video_src = ''; //Added By 9Code Start if(strpos(esc_url( $args['src'] ) , "youtube")!==false){ $video_src ='<iframe src="'.esc_url( $args['src'] ).'" frameborder="0" gesture="media" allow="encrypted-media" allowfullscreen=""></iframe>'; } else //Added By 9Code end if ( false !== et_pb_check_oembed_provider( esc_url( $args['src'] ) ) ) {
See below demo : https://myiict.com/
If not working for you just comment below or feel free to ask me
Enjoy Developing ….. 🙂
Cano says
Hey !
I tried this method but it made my website crash ..
It’s okay I fixed it cause I kept a copy of the video.php file
Any other solution please ?
Thank you for taking your time trying to help out people ! I have been struggling with this issue for about 10 days
…
Thanks by advance
Best regards
Parbat Pithiya says
Hey Cano,
Sorry to hear that you having issues from last 10 days, Actually latest Divi version are support Youtube video URL so you can upgrade solve your problem. if you are not able to upgrade then need to check what causing problem when you adding script.
You can contact me for further help,
Thank you
Alberto says
Can you get this to work on the new header or slider modules?
Best regards,
Alberto
Parbat Pithiya says
yes that will work
Pe Jung Labs says
Aww nice, it’s worked. Finally I found a working one. Thank you for your article