
I would make my embedded videos from youtube are responsive could help me with this please ?. Cheers
I would make my embedded videos from youtube are responsive could help me with this please ?. CheersI would make my embedded videos from youtube are responsive could help me with this please ?. Cheers
I would make my embedded videos from youtube are responsive could help me with this please ?. CheersResponsive means huge iframe videos ?
<pre>
add_filter('embed_oembed_html', 'my_embed_oembed_html', 99, 4);
function my_embed_oembed_html($html, $url, $attr, $post_id) {
return '<div class="video-container">' . $html . '</div>';
}
</pre>
Settings - Additional CSS code:
.video-container {
position: relative;
padding-bottom: 56.25%;
padding-top: 30px;
height: 0;
overflow: hidden;
}
.video-container iframe,
.video-container object,
.video-container embed {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
You can try this. I did not tested it but should work. Bootstrap native responsive embed, already exist in Themler. Or it should.
No need for CSS part.
http://getbootstrap.com/components/#responsive-embed
<pre>
function bootstrap_wrap_oembed( $html ){
$html = preg_replace( '/(width|height)="d*"s/', "", $html ); // Strip width and height #1
return'<div class="embed-responsive embed-responsive-16by9">'.$html.'</div>'; // Wrap in div element and return #3 and #4
}
add_filter( 'embed_oembed_html','bootstrap_wrap_oembed',10,1);
</pre>
As a matter of fact it should be nice and appealing option in Themler.
Edit: It works nice. Better snippet than first one, much better.
As a matter of fact it should be nice and appealing option in Themler. Edit: It works nice. Better snippet than first one, much better.Hello
I would make my embedded videos from youtube are responsive could help me with this please ?
Actually, if you added video using Themler's Video control the video will be responsive.
The only thing is that if you add a fixed width for the control it will will not be responsive.
Thank you,
Olivia
Hi,
The themler's video control only works in pages, but in Blog posts, themler doesn't let you edit contents. Are there other ways in themler can make the video responsive?
Thank you.
Hi, The themler's video control only works in pages, but in Blog posts, themler doesn't let you edit contents. Are there other ways in themler can make the video responsive? Thank you. > Hello > > > I would make my embedded videos from youtube are responsive could help me with this please ? > > Actually, if you added video using Themler's **Video** control the video will be responsive. > The only thing is that if you add a fixed width for the control it will will not be responsive. > >  > >  > > Thank you, > OliviaHello
I would make my embedded videos from youtube are responsive could help me with this please ?
Actually, if you added video using Themler's Video control the video will be responsive.
The only thing is that if you add a fixed width for the control it will will not be responsive.Thank you,
Olivia
Hi,
The Blog page shows the post excerpts, each post content should be edited on that post page. There you can edit the video settings.
Sincerely,
Hella