Title: thumbnail size
Last modified: August 21, 2016

---

# thumbnail size

 *  [jphipps](https://wordpress.org/support/users/jphipps/)
 * (@jphipps)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/thumbnail-size-15/)
 * Accordking to this
 * “I’m using the Thumbnails display. How can I change the thumbnail size?
    The 
   default YARPP thumbnail size is 120px by 120px. The thumbnail size can be specified
   programmatically by adding **add_image_size( ‘yarpp-thumbnail’, $width, $height,
   true );** to your theme’s functions.php file with appropriate width and height
   variables. In the future I may add some UI to the settings to also set this. 
   Feedback is requested on whether this is a good idea.” This does not work in 
   my functions.php file – it causes no display of the website at all.
 * Am trying this in CSS – .yarpp-thumbnail {height: 150px; width:auto; !important;}–
   but does not work either. How do I get my thumbs to be something like 150×225
   px?
 * Thanks.
 * [http://wordpress.org/plugins/yet-another-related-posts-plugin/](http://wordpress.org/plugins/yet-another-related-posts-plugin/)

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

 *  Plugin Author [YARPP](https://wordpress.org/support/users/jeffparker/)
 * (@jeffparker)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/thumbnail-size-15/#post-4181776)
 * Each time you change the functions.php file, you will probably want to have WordPress
   regenerate appropriate sized thumbnails for all of your images. I recommend this
   plugin for that purpose: [http://wordpress.org/extend/plugins/regenerate-thumbnails/](http://wordpress.org/extend/plugins/regenerate-thumbnails/)
 *  Thread Starter [jphipps](https://wordpress.org/support/users/jphipps/)
 * (@jphipps)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/thumbnail-size-15/#post-4181791)
 * I am using regen thumbnails. The issue is the code you indicate for the functions.
   php file shuts down my site – cannot be accessed at all. The plugin would be 
   much better to be able to control image sizes, especially since not all images
   are set for a square setup. The css **.yarpp-thumbnail {height: 150px; width:
   auto; !important;}** apparently does not work either. So any other options?
 *  Plugin Author [YARPP](https://wordpress.org/support/users/jeffparker/)
 * (@jeffparker)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/thumbnail-size-15/#post-4181827)
 * It sounds like there’s an error when adding the code to functions.php. Make sure
   you’re putting integers in place of $width and $height:
    `add_image_size( 'yarpp-
   thumbnail', 150, 225, true );`
 * And the code needs to be in functions.php, before the final %>.

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

The topic ‘thumbnail size’ is closed to new replies.

 * ![](https://ps.w.org/yet-another-related-posts-plugin/assets/icon-256x256.png?
   rev=2549977)
 * [YARPP - Yet Another Related Posts Plugin](https://wordpress.org/plugins/yet-another-related-posts-plugin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yet-another-related-posts-plugin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yet-another-related-posts-plugin/)
 * [Active Topics](https://wordpress.org/support/plugin/yet-another-related-posts-plugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yet-another-related-posts-plugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yet-another-related-posts-plugin/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [YARPP](https://wordpress.org/support/users/jeffparker/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/thumbnail-size-15/#post-4181827)
 * Status: not resolved