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.

Author: Ryan Kessen

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

Leave a Reply

Your email address will not be published. Required fields are marked *