Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I want to restrict the width to a maximum of 600px for images uploaded using the "full size" image option in WP posts/pages section.

I've tried two methods:

Method 1:

Adding the following to style.css of the theme:

.post img {
max-width: 600px; /* Adjust this value according to your content area size*/
height: auto;

}

Method 2:

Adding the following to the top of functions.php:

$GLOBALS['content_width'] = 600;

Both of them are not working. The option for full-size is not available in Settings > Media

Please help.

share|improve this question
add comment

2 Answers 2

Full size images are unmodified by default as it literally is the full size image. You could ensure the photo is a suitable size prior to uploading or restructure your theme so that full size images are not linked and are perhaps replaced by large images which can have their size set in WP Admin.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.