[Resolved] Setting global embed/oEmbed width in WP 3.5
So I’m really impressed with WordPress 3.5. The new media uploader/manager is awesome and most of the other tweaks and such are great. However, I’m running into one problem: now that the embeds setting has been removed from Settings>Media how are we to set the width of embeds/oembeds? Look at the video at the bottom of this post. That doesn’t look good! It should be the same width as the body paragraph.
I don’t want to have to insert embed code in each post that contains a video. One of many features I love is that you can just paste in the video URL and it takes care of the rest. But now that I can’t set a width (I never understood why height was always filled by default and not width) under the media settings the videos are too narrow. Was there something intended to replace this? I’m just not understanding why it’s gone.
Yeah where did that setting go, and why has the functionality been removed?
I saw it in the list of “updates” included in 3.5. It’s like it was ditched along with various other simplifications of the Settings sub-items. While the other simplifications were great, and probably long-overdue, this one makes no sense and needs to come back.
Just like to bump this. I also submitted it as a kvetch here on WP.org. Hopefully somehow it’ll get some attention. I really can’t understand why it was removed…?
Anyone? The whole idea of an oEmbed feature is that you don’t have to insert a shortcode. But with this gone, I still have to insert a shortcode, because the videos don’t display as wide as the content area.
Because I used to set the width and not the height, before this was removed, it used to work just great. No more. Can someone at least submit this to Trac (or whatever it’s called)? I find it baffling or I’d do it myself and thus my posting it here. I’ve had many others on other forums say what a frustration this is. What does it take to get someone to listen. Huge step backward here.
If you’d like to see this added back (or at least the width setting) you can support it here: http://wordpress.org/ideas/topic/bring-back-the-media-width-setting-for-oembed?replies=1#post-25092
And if you’re too lazy to click, there IS a setting for themes 🙂
if ( ! isset( $content_width ) ) $content_width = 600;
That means “If someone didn’t already set content width, make it 600”
You can change it as you want.
I found some other people who don’t like the way this all works: http://wycks.wordpress.com/2013/02/14/why-the-content_width-wordpress-global-kinda-sucks/ in my search for more answers. I’m struggling with this setting again. I’ve added it to one theme’s functions.php, but am now having troubles with making stuff responsive. Any ideas on how the 2012 theme keeps the new WP 3.6 player (and other oEmbeds) responsive? Because merely setting this doesn’t seem to work. Nor does adding the CSS suggested in the http://codex.wordpress.org/Content_Width.
- The topic ‘[Resolved] Setting global embed/oEmbed width in WP 3.5’ is closed to new replies.