Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
themes-topic
youtube reboot issue
Avatar
kvr28
Member
Free Members
sp_UserOfflineSmall Offline
Apr 4, 2015 - 7:10 pm

Hello again, have a question on reboot. So I am running some more tests and I noticed youtube videos are cut off

youtube.jpgImage Enlarger

So I inspected the element and it is showing a minimum height of 60px and a display as flex which I check marked as can be seen in the lower right corner

youtube2.jpgImage Enlarger

 

then youtube shows fine

youtube3.jpgImage Enlarger

 

is that a reboot issue or a wp theme issue? I remember seeing a similar issue on a thread the other day but I can't see to find it, thank-you.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 4, 2015 - 9:32 pm
Avatar
kvr28
Member
Free Members
sp_UserOfflineSmall Offline
Apr 5, 2015 - 11:21 am

that's the thread I was thinking of, but it's a fresh up to date reboot install with no mods

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Apr 5, 2015 - 11:46 am

You have checked the CSS for this?

andy-signature.png
YELLOW
SWORDFISH
Avatar
kvr28
Member
Free Members
sp_UserOfflineSmall Offline
Apr 5, 2015 - 12:04 pm

I have, I downloaded it this morning to make sure I have the latest update

Avatar
kvr28
Member
Free Members
sp_UserOfflineSmall Offline
Apr 5, 2015 - 12:20 pm

I think I found the issue, but I don't know what is causing it. It is tied to how much text is before the youtube link

here with the text it looks fine

http://kvr28.staging.wpengine......-fracking/

with just a few words the video gets cut off

http://kvr28.staging.wpengine......-snag-mag/

I copied the text from the first link and edited the second one with it and the video showed fine

this link has two video posted with some brief text between them

http://kvr28.staging.wpengine......c-sawmill/

I added the text from the first link at the top of the post and they both showed up fine then

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Apr 5, 2015 - 2:34 pm

Hey kvr,

It's something to do with 'fluid-width-video-wrapper'.. I'm guessing that's something to do with a plugin or the WP theme?

This container is what holds the iframe. It's not got a height defined, just a 'padding-top'. I'm guessing that the inline style of padding-top: 56.2304%; changes depends on where it is rendered on the page, but because of this, you have a container that's 1px high, and the padding top ends up being the height of the video. This is causing the post content to treat it as 1px tall - I'm not sure why it's done this way but I guess there must be a reason.

Anyway, the padding top is 445px, and the overall height is 446px. I added 'height: 500px;' and it displays as it should. But - I'm not sure how this will work when posting in other places on the page.

Avatar
kvr28
Member
Free Members
sp_UserOfflineSmall Offline
Apr 5, 2015 - 3:08 pm

I disabled all plugins except for simplepress and it is is still an issue. Any suggestions what I can add to CSS to test and see if it fixes it or creates other issues?

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Apr 5, 2015 - 4:05 pm

It's a tough one really. It's not part of SP, and if not part of plugins I can only image it's the WP theme. What worked for me was:

.fluid-width-video-wrapper {
    height: 500px;
    box-sizing: border-box;
}

But this assumes the YouTube videos are going to be a certain width and height. Also, you might want to test several posts in a row to see how it behaves being in a different position.

Best place to put it would be if your theme has a custom style includes box as that should be the last thing loaded, but if not I would probably add that to the end of your themes stylesheet, or child theme.

Avatar
kvr28
Member
Free Members
sp_UserOfflineSmall Offline
Apr 5, 2015 - 4:10 pm

will give it a shot

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626