Title: standard image sizing
Last modified: August 19, 2016

---

# standard image sizing

 *  [alltrue](https://wordpress.org/support/users/alltrue/)
 * (@alltrue)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/standard-image-sizing/)
 * Is there a way to ensure every image you place on your blog is a max width, say
   525px?
    my site is [http://www.randomgoodness.ca](http://www.randomgoodness.ca)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/standard-image-sizing/#post-1916033)
 * Try adding `if ( ! isset( $content_width ) ) $content_width = 525;` to your theme’s
   functions.php file.
 *  Thread Starter [alltrue](https://wordpress.org/support/users/alltrue/)
 * (@alltrue)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/standard-image-sizing/#post-1916059)
 * Thanks esmi
 * I looked and found this:
 * // Overides default FULL SIZE image size
    $GLOBALS[‘content_width’] = 550;
 * but its not reducing the size to 550.
    I also tried to enter the code you provided,
   not sure where to put it. I don’t know php so I just dumped it in and it didn’t
   seem to work either. sorry. Any other suggestions.
 * Josh
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/standard-image-sizing/#post-1916193)
 * The code can go anywhere in your functions.php file providing it is after the
   opening `<?php` tag and outside any existing functions. The code **will** work
   providing you use the Large image in your posts/pages.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘standard image sizing’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [15 years, 2 months ago](https://wordpress.org/support/topic/standard-image-sizing/#post-1916193)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
