Control Video size
This support request was posted in Paeon by cybrbaer
- cybrbaer December 15, 2013 at 4:11 am
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;
}Juanfra Aldasoro December 15, 2013 at 3:08 pmHello 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.
You must be logged in to reply to this topic.