-
AuthorPosts
-
October 23, 2014 at 3:28 pm #131035
Is there a way to make the initial view of the video SMALLER within the code, or do I have to create the video at a smaller size to begin with?
It sort of LOOMS over the whole page when I use the default size as it appears in YouTube.
Thanks!
October 23, 2014 at 10:18 pm #131224Hi there,
Thanks for posting in.
X video embed is responsive to it will always respond to it’s container size. If you’re referring to video embed, then you can create your own class name that will control your embed size.
Example, add this css at your customizer’s custom css.
.video-size-500-300 { max-width: 500px; display:block; float:none; } .video-size-500-300 .x-responsive-video-inner{ padding-bottom:0; height: 300px; }
Now, what you need to do is add video-size-500-300 at your video shortcode anytime you want.
Eg.
[x_video_embed class="video-size-500-300"]<iframe src="http://player.vimeo.com/video/67051688" width="500" height="281" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>[/x_video_embed]
And if you’re referring to video post format or portfolio video, then it should be like this.
.single .entry-featured .x-responsive-video{ max-width: 500px; display:block; float:none; } .single .entry-featured .x-responsive-video-inner{ padding-bottom:0; height: 300px; }
Cheers!
October 24, 2014 at 11:07 am #131599PERFECT! Thank you!
October 24, 2014 at 1:52 pm #131678You’re welcome welcome! 🙂
December 8, 2014 at 12:05 pm #160578and what about the video aspect size? I need to embed 2.35 cinemascope videos and I do not want the top and bottom black bars.
December 8, 2014 at 12:07 pm #160579something about 16:7 video aspect ratio. how do I change the video containers aspect?
thx you !
December 8, 2014 at 11:55 pm #160860Hi Marco,
Thanks for writing in! To assist you with this, we’ll first need you to provide us with your URL as stated on the forum entrance page. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you.
Thanks!
December 9, 2014 at 2:51 am #160972OOPS! my fault sorry 🙂
the URL is
http://terratremafilm.com/works
and
http://terratremafilm.com/works/trussardi is the test I did.
the video in that page has cinemascope aspect, the ratio is 2.35:1 (16:9 ratio is 1.78:1).
I tried to constrain the video container manually with this custom CSS:.single .entry-featured .x-responsive-video{
max-width: 1200px;
display:block;
float:none;
}
.single .entry-featured .x-responsive-video-inner{
padding-bottom:0;
height: 510px;
}but this way is not responsive and when I resize the browser window the black bars appear again.
December 9, 2014 at 7:29 am #161121Hi,
Try replacing your custom css code with this.
body .x-responsive-video .x-responsive-video-inner { padding-bottom:43%; }
Hope that helps. 🙂
December 9, 2014 at 8:36 am #161169thx! it works!
December 9, 2014 at 1:20 pm #161343You’re welcome! Write us back anytime!
-
AuthorPosts