Video Shortcode Set to Static 40px Height
-
I am using the Bridge theme, and everything is up to date. The video is not live on the site, but it could be if need be (I just wanna avoid having something problematic on my live site).
Anyway, I’m trying to insert a video into a post, but the height of the video is set to 40px no matter what the window size is, although the width is perfectly responsize. Here’s my video shortcode:
[video width="1280" height="720" mp4="https://direct2dealers.com/wp-content/uploads/2015/03/D2D_Final_NoFade.mp4" poster="https://direct2dealers.com/wp-content/uploads/2015/05/lamborg-blk.jpg" preload="auto"][/video]
There is a pesky line of CSS that causes the video to be 40px tall no matter what, located in a file called “stylesheet.min.css?ver=4.2.2”:
.mejs-container { height: 40px!important; }
So, I went in and added my own CSS, as shown below:
.wp-video > .mejs-container { height: 596px!important; }
Which solves the problem for the most part, except when the window is resized to a smaller size, the inner video image is responsive, but the box it is inside of remains at 596px height (as defined by me). I could just create multiple lines of CSS to set the height dynamically depending on the window width, but I don’t think that should be necessary.
- The topic ‘Video Shortcode Set to Static 40px Height’ is closed to new replies.