I was wondering if there was a way to define max width/height for objects embedded into single post pages?
Also, is there a way to define a function to automatically resize all embedded objects (mostly videos) to a certain width/height?
Thanks!
I was wondering if there was a way to define max width/height for objects embedded into single post pages?
Also, is there a way to define a function to automatically resize all embedded objects (mostly videos) to a certain width/height?
Thanks!
If you're embedding video, then you need to set the $content_width variable in functions.php:
if ( ! isset( $content_width ) ) {
$content_width = YYY;
}
(where "YYY" is the width, in pixels, of the content area)
Note that attached images that are inserted as the standard "large" size will also respect $content_width.
This topic has been closed to new replies.