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.

Date: May 22, 2013

Filed Under: Web Development

About the Author: Computer Repair, Freelancer, Blogger, Reviewer and all around nice guy!

Leave a Reply




Google PageRank