Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Youtube video links embedding to large
Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Apr 23, 2013 - 9:14 am

In your WP theme stylesheet file. (styles.css)

andy-signature.png
YELLOW
SWORDFISH
Avatar
Ygor Ferdinando Lira Lima
Member
Free Members
sp_UserOfflineSmall Offline
Jul 6, 2013 - 5:30 pm

Mr Papa said
try this instead:

.spPostContent iframe {max-width: 730px;}

I can not help in any proportional display format, the best we got was this:
. spPostContent iframe {max-width: 82%; max-height: 43%;}

http://redetcibrasil.net/forum.....llo-bacci/

the display cell is not proportional.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jul 6, 2013 - 6:15 pm

sorry, Ygor, I do not follow your comment...  how is it related to this topic?

Avatar
Brandon
U.S.
SP Wrangler
Free Members
sp_UserOfflineSmall Offline
Jul 6, 2013 - 11:54 pm

Change the CSS to this.

.spPostContent iframe {
    max-width: 100%;
}

With no entry for height so it will auto adjust. Then check and see if needs any tweaks from there.

Avatar
Laura Al-Amery
Member
Free Members
sp_UserOfflineSmall Offline
Jul 24, 2013 - 8:56 pm

None of the css options worked. My videos are still extending wider than the forum width. video-too-wide.pngImage Enlarger

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jul 25, 2013 - 12:32 am

Laura-AlAmery,  the videos normally show up right... personally, think wp devs made a mistake when they removed the size option... but more importantly, when they did, other plugins such as jetpack, can mess up the width...  any chance you are running the jetpack plugin?  if not, can you give us a link to an example so we can examine the html/css?

Avatar
Laura Al-Amery
Member
Free Members
sp_UserOfflineSmall Offline
Jul 25, 2013 - 3:19 pm

Im not running jetpack.

Here is a link to the forum

http://lauraalamery.com/devsit.....rom-laura/

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jul 25, 2013 - 6:17 pm

Brandon's code a few posts back work for me though you might want to add an important directive

.spPostContent iframe {
    max-width: 100% !important;
}
 
its because the oembed link you pasted was using the default youtube width... and wp used to limit the width based on an option in settings, but they removed it and supposedly limited the content... but you can see the result... so more css needed...
Avatar
TIMM
Eastern Arizona
Member
Free Members
sp_UserOfflineSmall Offline
Aug 9, 2013 - 3:55 pm

I just want to make sure nothing's changed. I see the "Insert/edit embedded media" option, but it doesn't seem to work with youtube. I was hoping it would be an easy way to edit the size of the videos for YouTube and Vimeo.

Use the code suggested before?

200-blue-ns.png

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Aug 9, 2013 - 4:31 pm

with youtube, just paste the url of the video into the post content... no need to embed it yourself, wp will handle it for you...

the code before made it 100%... if you want it smaller, you will need to specify the size...

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