NiceThemesControl Video size – NiceThemes http://nicethemeswp.com/forums/topic/control-video-size/feed/ Wed, 23 Apr 2025 14:39:38 +0000 http://bbpress.org/?v=2.5.12-6148 en-US http://nicethemeswp.com/forums/topic/control-video-size/#post-2769 <![CDATA[Control Video size]]> http://nicethemeswp.com/forums/topic/control-video-size/#post-2769 Sun, 15 Dec 2013 04:11:16 +0000 cybrbaer Can you tell me if this wold work for the paeon theme?

How to Set oEmbed Max Width in WordPress 3.5 with $content_width

function.php file :

add_filter(‘embed_defaults’,’yourthemename_embed_defaults’);
function yourthemename_embed_defaults($defaults) {
$defaults[‘width’]=600; // or whatever you want
$defaults[‘height’]=360; // or whatever you want
return $defaults;
}

]]>
http://nicethemeswp.com/forums/topic/control-video-size/#post-2775 <![CDATA[Reply To: Control Video size]]> http://nicethemeswp.com/forums/topic/control-video-size/#post-2775 Sun, 15 Dec 2013 15:08:13 +0000 Juanfra Aldasoro Hello there,

Thanks for writing.

I’m not sure of what’s the intention of that tutorial. I can tell that the $content_width variable is already defined in the theme (includes/options.php)

Also, the dimensions of the embed are usually set within the embed code. However, for example, for our theme’s blog posts embed code, the video is stretched to take the full width of its section.

Best,
Juan.

]]>