-
AuthorPosts
-
July 2, 2015 at 7:21 pm #319728
jakejauhariParticipantHi guys,
I have one last thing to sort out on my site.
I’m trying to get rid of the black bars at the top and bottom of my embedded videos.
The videos are hosted at Vimeo https://vimeo.com/131087999The embed code I am using is:
<iframe src=”https://player.vimeo.com/video/131087999?autoplay=1&title=0&byline=0&portrait=0″ width=”1600″ height=”650″ frameborder=”0″ allowfullscreen=”allowfullscreen”></iframe>Any help with removing the black bars will be greatly appreciated!
Cheers,
JakeJuly 3, 2015 at 2:48 am #320008
Paul RModeratorHi Jake,
Please replace your code with this.
<iframe src="https://player.vimeo.com/video/131087999?autoplay=1&title=0&byline=0&portrait=0" width="1200" height="487" style="width:1200px;height:487px;" frameborder="0" allowfullscreen="allowfullscreen"></iframe>Then add the code below under Custom > CSS in the Customizer.
body .x-video .x-video-inner { padding-bottom: 0; height: auto; } body .x-video .x-video-inner iframe { position:static; }Hope that helps.
July 5, 2015 at 8:05 pm #321730
jakejauhariParticipantHi guys,
Thanks for your help with this.
I’ve added these two items but unfortunately the black bars remain.
http://staging.brionycroft.com.au/video-test/
Is there anything else we can try to lose the black bars?
Cheers and thanks,
JakeJuly 5, 2015 at 8:51 pm #321753
jmacreationsParticipantI have just looked at your site and if you change your iframe embed code style to be
height:350pxthen it works for me. The black bars are becuase its fitting to video into a different sized iframe. In future if you set your iframe/embed to be the correct proportions you wont get the black bars.July 5, 2015 at 10:24 pm #321785
LelyModeratorThank you for helping @jmacreations!
@jakejauhari,
Please remove this style=”width:1200px;height:487px;” from your iframe code and the result would be this:

Hope this helps.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-319728 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
