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
Adjust embedded videos width in posts
Avatar
Joan Alamo Vallejo
Member
Free Members
sp_UserOfflineSmall Offline
Dec 13, 2012 - 1:11 am

Since WP has removed the max width from the embedded media, how can I make the videos fit in my posts? SP has the option but seems that it only works with text and images

http://www.subnoise.es/foro/ge.....na/#p44550

 

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 13, 2012 - 4:38 am

When did they remove this? The settings are still available in the media settings?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Joan Alamo Vallejo
Member
Free Members
sp_UserOfflineSmall Offline
Dec 13, 2012 - 5:53 am

On the new version (3.5) they removed the oEmbed settings

http://codex.wordpress.org/Set.....dia_Screen

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 13, 2012 - 6:01 am

Ah - you mean this: 'Remove oEmbed options from the Settings Media Screen. Width adheres to theme's content width, height is 1.5 times width'.

Shouldn't make any difference really - actually should be better. But I will investigate to see if we can add some CSS to give it some right hand margin on forum posts.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Joan Alamo Vallejo
Member
Free Members
sp_UserOfflineSmall Offline
Dec 13, 2012 - 6:54 am

Ok, let me know if there's anything I can try in the meantime

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 13, 2012 - 7:58 am

You could try something like this - try adding it to WP theme CSS or even the forum theme CSS:

#spMainContainer embed,
#spMainContainer iframe,
#spMainContainer object,
#spMainContainer video {
    max-width: 95%;
}

See if that helps at all...

andy-signature.png
YELLOW
SWORDFISH
Avatar
Joan Alamo Vallejo
Member
Free Members
sp_UserOfflineSmall Offline
Dec 13, 2012 - 8:46 am

I added this to the default.php, worked like a charm!

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

 

 

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 13, 2012 - 11:20 am

Which is rather strange as you can't put an iframe in a paragraph and a max of 100% is exactly what WP already set it to! So it shouldn't really make any difference!

andy-signature.png
YELLOW
SWORDFISH
Avatar
Joan Alamo Vallejo
Member
Free Members
sp_UserOfflineSmall Offline
Dec 13, 2012 - 1:08 pm

I guess it takes the 100% of the spPostContent

 

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 13, 2012 - 1:51 pm

I have to say I have never heard of it and I don't recall that name ever coming up on the support forum. How does it work? And what does it do?

andy-signature.png
YELLOW
SWORDFISH
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: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625