How to set width of embedded media in WordPress 3.5

Since WordPress 3.5, the option to set the width and height of embedded media has been removed.

Open wp-content/themes/your-theme/functions.php, add the following:

if ( ! isset( $content_width ) ) $content_width = 600;

Simply replace the “600” with the respective width you would like to use.

Published by

Ryan Kessen

Computer Repair, Freelancer, Blogger, Reviewer and all around nice guy!