Support Forum

Youtube video links embedding to large

DR Daniel Reed
Daniel Reed
Member

Hello..

 

I was wonder if i am over looking something.. on our forum it seems that i had this working.. at one point.. but i went to components > file upload and was able to set the max size of the youtube video that is linked into a forum post.

 

as of now.. the it links as it should but about a little less that about 1/3 of the video is cut off from the the right edge of the post that is made..

-Dan

37 Answers

New Answer

MP Mr Papa
Mr Papa
Member

are you using jetpack? a common error caused in wp pages by jetpack unless you disable the shortcode module of jetpack… unfortunately, a lot of this in WP support forum since wp removed the oembed max size settings in the wp admin…

if not using jetpack, please elaborate..

DR Daniel Reed
Daniel Reed
Member

not using jet pack..

 

as far as elaborating.. i am not sure what else to add.. 

the youtube links seem to self embed when a poster posts them.. they do not have to go through the add media button on the editor.. they simply put the url of the youtube video they want to show.. and it appears..

if there is any other information you might need .. let me know and ill do my best to provide that.. you can go to my forum.. 

its at www.rchelination.com/forum

i have a generic account your welcome to use..

user name is testuser

pw is testuser

the forum is pw protected until we are ready to go live with it.. and the pw to get on the site is   werock  

your welcome to head over.. in the main forum youll see a topic called RC heli videos  you will see examples of what i am talking about there

 

-Dan

YS Yellow Swordfish
Yellow Swordfish
Member

The problem has started because the WordPress dev team have removed the option to set a max width in the WP settings > media admin panel that was available before and are now adding in a width value dynamically – something which I personally think is a mistake and ypu are not alone in being caught out by it. Am I also right in thinking you are using some sort of third-party plugin to render the videos? That might also be in need of an update f this is the case.

As a temp measure try adding to your Wp theme CSS this and see if it helps:

.player-container {
    max-width: 82%;
}

Might be enough…

EK Edward Koon
Edward Koon
Member

Hanna Code Insert is another option for adding YouTube, PayPal Buttons, Etc. Copy / Paste your content then past the short code in your post. Especially useful if you want to add a video that is in an iframe where SP will not allow it. WordPress puts an add code button on it’s tiny mce editor making it easy to enter short codes easily.

 

DR Daniel Reed
Daniel Reed
Member

Ok, I’m back and still haven’t been able to solve the problem. Unfortunately, the max-width code didn’t work, YS. :(

Here’s an example of my problem on my actual forum: http://www.rchelination.com/forum/rc-heli-videos/rchn-snow-day/

I am unable to find anything in the css stylesheet or any of the other theme files that will allow me to force the embedded video frame width to some value less than the 730px that my forum is set at.

I want my forum users to be able to simply copy and paste a YouTube or Vimeo link into the editor and get a video that doesn’t overflow the forum width. Ideally, it would look like this: http://demo.simple-press.com/forum/guest-demo-forum/test-youtube-embed/

I don’t want to have short code or HTML editting enabled for my forum users to access, so I need a solution that changes the global default. Thanks again for your help!

MP Mr Papa
Mr Papa
Member

try this instead:

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

DR Daniel Reed
Daniel Reed
Member

Mr Papa,

That looks like it worked! Thanks a ton! :D

YS Yellow Swordfish
Yellow Swordfish
Member

Good news. Thanks for the update.

CA Carlos
Carlos
Member

Mr Papa said
try this instead:

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

sorry i lost something… where do i have to put this code?

 

thanks in advance

YS Yellow Swordfish
Yellow Swordfish
Member

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

MP Mr Papa
Mr Papa
Member

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

BR Brandon
Brandon
Member

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.

LA Laura Al-Amery
Laura Al-Amery
Member

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