Video embed "iframe" code: How do I alter default pixel-height of Youtube vids?
-
Right now, if I simply paste a raw YouTube URL into the edit window of any new post, without any surrounding or additional “embed” or any other code, that YouTube video will display and play successfully when the post is previewed or published. Which is good. I like that.
However, what I DON’T like, is that right now, as things currently stand, every single YouTube video, when appearing in one of my posts, displays with a frame that is 600 pixels tall — no matter what the width or ratio was of the original video.
Now, somewhere in existence there must be code that achieves these two things, one good and one bad:
– This code causes raw video URLs pasted into my content to display and play successfully, without me having to input any special additional “embed” instructions;
– This code also causes that displayed video’s frame to always be 600 pixels high.
Therefore, what I seek is this:
I want to keep the ability to have raw URLs in my editable content converted automatically into a displayed video; but I want to change the default behavior of the conversion process such that any and all videos are not always 600 pixels high, but are rather either 100% of the actual height, or (if that is not possible), some set height that is somewhere around 400 or 360 pixels high.
What I don’t know is WHERE THIS CODE EXISTS such that I can access it and change it.
I thought it might be part of the theme I am using (Weaver II), but that turns out not to be the case – they insist this is part of the general WordPress install. It might involved the term “shortcode.”
I’m quite sure that if I was pointed in the right direction of the code’s location (i.e. which file it is in), that I would successfully be able to tweak the code to change the default height of videos.
Remember, I’m not talking about altering the height of videos on a post-by-post or video-by-video basis; I could do that simply by using the “embed” code on any YouTube video’s YouTube page. Instead, I want to change the DEFAULT height of how any and all videos are displayed, as (I assume) determined by whatever it is that causes raw URLS to be converted to displayed video.
So my question, if it can be summed up in one sentence, is:
WHERE do I make whatever changes are necessary to change the default height of displayed videos?
- The topic ‘Video embed "iframe" code: How do I alter default pixel-height of Youtube vids?’ is closed to new replies.