Tagged: x
-
AuthorPosts
-
October 15, 2016 at 2:29 am #1217102
Jeremy PParticipantOn pages like this one I’m getting the bottom of the video covered up, it’s not showing. There should be controls at the bottom. I’ve spoken to my video hosting support and they say it’s the x-video CSS.
October 15, 2016 at 2:30 am #1217103
Jeremy PParticipantThis reply has been marked as private.October 15, 2016 at 3:23 am #1217136
ChristopherModeratorHi there,
Please add following code in Customize -> Custom -> Global CSS :
.x-video .x-video-inner { padding-bottom: 76.25%; }Hope that helps.
October 18, 2016 at 10:14 pm #1221755
Jeremy PParticipantHi, that doesn’t seem to be doing it. For reference, I’ve added the embed code just in html below the x-video embed code, and the controls are showing well there.
October 19, 2016 at 3:19 am #1221972
ChristopherModeratorHi there,
The issue is coming from ifram tag’s style, please remove height and width attributes to fix this. See the attachment.
Hope it helps.
October 19, 2016 at 6:34 pm #1223004
Jeremy PParticipantHi, interestingly, that code is not quite what I have in the x-video embed box. Here is the embed code wistia gives me
<div class=”wistia_responsive_padding” style=”padding:50.0% 0 0 0;position:relative;”><div class=”wistia_responsive_wrapper” style=”height:100%;left:0;position:absolute;top:0;width:100%;”><iframe src=”//fast.wistia.net/embed/iframe/2ey2rcgqto?videoFoam=true” allowtransparency=”true” frameborder=”0″ scrolling=”no” class=”wistia_embed” name=”wistia_embed” allowfullscreen mozallowfullscreen webkitallowfullscreen oallowfullscreen msallowfullscreen width=”100%” height=”100%”></iframe></div></div>
<script src=”//fast.wistia.net/assets/external/E-v1.js” async></script>So, the CSS you referenced above seems to be in the div called video foam dummy. So, as an experiment, I have now changed the embed code given to me by Wistia (in the src=”” section) from
videoFoam=True
to
videoFoam=False
This seems to have worked, as now the entire video shows. The only problem remaining is that the padding below the video is larger than the rest of the padding. How should I fix that?
To confirm, this is the embed code I now have in the X-video embed box:
<div class=”wistia_responsive_padding” style=”padding:50.0% 0 0 0;position:relative;”><div class=”wistia_responsive_wrapper” style=”height:100%;left:0;position:absolute;top:0;width:100%;”><iframe src=”//fast.wistia.net/embed/iframe/2ey2rcgqto?videoFoam=false” allowtransparency=”true” frameborder=”0″ scrolling=”no” class=”wistia_embed” name=”wistia_embed” allowfullscreen mozallowfullscreen webkitallowfullscreen oallowfullscreen msallowfullscreen width=”100%” height=”100%”></iframe></div></div>
<script src=”//fast.wistia.net/assets/external/E-v1.js” async></script>October 19, 2016 at 6:38 pm #1223005
Jeremy PParticipantFor reference, now that videofoam is set to false, I’ve tried the CSS you initially suggested, and I’ve tried removing it. The problem persists.
October 20, 2016 at 12:37 am #1223378
LelyModeratorHi Jeremy,
Please try this one:
.page-id-6250 #x-section-1 .x-video .x-video-inner { padding-bottom: 50.25%; }Hope this helps.
October 21, 2016 at 10:52 pm #1226228
Jeremy PParticipantNo, that didn’t do it either. I also think that CSS would be a little too specific, as I have many many pages with similar videos that do the same thing.
October 22, 2016 at 2:52 am #1226347
RadModeratorHi there,
In that case, you can do multiple classes that you can optionally add to selected video. Example,
.x-video.size-1 .x-video-inner { padding-bottom: 50.25% !important; } .x-video.size-2 .x-video-inner { padding-bottom: 40.25% !important; }You may create as many as you want with different sizes. Then simply add size-1 or size-2 to your video embed’s Class input.
cheers!
October 22, 2016 at 9:09 pm #1226890
Jeremy PParticipantThanks, that sounds good, but that code is still not affecting the padding around the video.
October 23, 2016 at 12:54 am #1226999
Rue NelModeratorHello There,
The code did not work because you were inserting an embed code from Wistia. To resolve it, you may use this code:
.x-video .wistia_responsive_padding { padding-top: 20% !important; }And by the way, you have an invalid css. You should have something like this:
/* remove padding on some videos */ .x-video.size-1 .x-video-inner { padding-bottom: 50.25%; } /* end remove padding */Hope this helps.
October 23, 2016 at 10:02 pm #1227815
Jeremy PParticipantThank you. In the end I find that I need both sections of CSS and that fixes it.
*/ remove padding on some videos */
.x-video .wistia_responsive_padding {
padding-top: 20% !important;
}
.x-video .x-video-inner {
padding-bottom: 50.25%;
*/ end remove padding */October 24, 2016 at 12:04 am #1227889
LelyModeratorYou’re welcome!
Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1217102 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
