Title: Thumbnail size problem
Last modified: August 20, 2016

---

# Thumbnail size problem

 *  Resolved [Willem-Siebe](https://wordpress.org/support/users/siebje/)
 * (@siebje)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/thumbnail-size-problem-1/)
 * Hi,
 * 1) When I look in my Image folder I see images with size 120 x 120. Is this generated
   by YARPP it’s PHP? In styles-thumbnails.php I found:
 *     ```
       $height = 120;
       $width = 120;
       ```
   
 * But I don’t understand PHP. But in my WordPress thumb size is on 150 x 150 so
   I don’t think WP is making these smaller thumbs right?
 * 2) If I want to use an other sized thumbnail, you have answers for that in the
   FAQ. I thought, let me try first with 150 x 150 because ALL my images have this
   thumbnail (generated by WP). I added this into my function.php:
 * `add_image_size( 'yarpp-thumbnail', 150, 150, true );`
 * But I still have images which are to long, also if I look up the source, the 
   thumbsize image is not loaded:
 * `<img width="100" height="150" src="http://www.ruzzleonline.nl/images/besterumblewoordlasterden325punten.
   jpg" class="attachment-yarpp-thumbnail wp-post-image" alt="Beste Ruzzle woord
   Lasterden 325 punten" style="display: block;" data-lazy-loaded="true">`
 * Is there something I do wrong?
 * Kind regards,
 * Willem
 * [http://wordpress.org/extend/plugins/yet-another-related-posts-plugin/](http://wordpress.org/extend/plugins/yet-another-related-posts-plugin/)

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

 *  Thread Starter [Willem-Siebe](https://wordpress.org/support/users/siebje/)
 * (@siebje)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/thumbnail-size-problem-1/#post-3523753)
 * I was thinking YARPP is so often used that somebody out here could help me :-).
   Can anybody help me with my problem?
 * Kind regards,
 * Willem
 *  [johnirsk8r](https://wordpress.org/support/users/johnirsk8r/)
 * (@johnirsk8r)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/thumbnail-size-problem-1/#post-3523756)
 * try putting this in your css file.
 * .attachment-yarpp-thumbnail {
    height: xpx !important; width: xpx !important;}
   were x is how big you want them to be.
 * and change this code
    `<img width="100" height="150" src="http://www.ruzzleonline.
   nl/images/besterumblewoordlasterden325punten.jpg" class="attachment-yarpp-thumbnail
   wp-post-image" alt="Beste Ruzzle woord Lasterden 325 punten" style="display: 
   block;" data-lazy-loaded="true">`
 * too
 * `<img src="http://www.ruzzleonline.nl/images/besterumblewoordlasterden325punten.
   jpg" class="attachment-yarpp-thumbnail" alt="Beste Ruzzle woord Lasterden 325
   punten" style="display: block;" data-lazy-loaded="true">`
 *  Thread Starter [Willem-Siebe](https://wordpress.org/support/users/siebje/)
 * (@siebje)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/thumbnail-size-problem-1/#post-3523757)
 * Hi, thanks for your reply.
 * But I don’t create the html so leaving out anything of the html is not possible.
   I just don’t get how this plugin works, strange things.
 * If I put the css there I’m afraid he resizes the big picture what
    A) looks not
   nice B) the plugin than still don’t use the excisting thumbnails what should 
   be possible coniderd the explenation of the plugin.
 * Kind regards,
 * Willem
 *  [ElvisKa](https://wordpress.org/support/users/elviska/)
 * (@elviska)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/thumbnail-size-problem-1/#post-3523770)
 * Hey, i’m having the same problem.
    I set all my thumbnails setting to 150×150,
   edited css, put dimenssions in functions.php, regenarated thumbnails… but still
   all Yarpp thumbs are 120×120 and looks bad when resized with CSS…
 * Lookind forward for any advice.
 *  [mitcho (Michael Yoshitaka Erlewine)](https://wordpress.org/support/users/mitchoyoshitaka/)
 * (@mitchoyoshitaka)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/thumbnail-size-problem-1/#post-3523778)
 * Dear all, Please read the first two entries in the readme’s Frequently Asked 
   Questions section. They specifically address these questions.
 *  Thread Starter [Willem-Siebe](https://wordpress.org/support/users/siebje/)
 * (@siebje)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/thumbnail-size-problem-1/#post-3523779)
 * Hi Mitcho,
 * First of all thanks for the great plugin.
    I see you marked this post as solved
   and that dissapointed me a little bit ;-). I think myself and ElvisKa told you
   we really put effort in making this work and our comments shows that we have 
   read the FAQ.
 * I read it all over again but I just don’t get it…
    a) I don’t want YARPP making
   new thumbnails b) I want yarpp to use all the thumbnails already generated by
   WP (150 x 150).
 * Please help us :-).
 * Kind regards Willem
 *  [ElvisKa](https://wordpress.org/support/users/elviska/)
 * (@elviska)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/thumbnail-size-problem-1/#post-3523780)
 * Dear Mitcho,
    first let me thank you for the great plugin. I’ve read intently
   FAQ and made all the steps that are listed there (assuming i wanted thumbs to
   be 150×150):
 * 1. I’ve added this line to my themes functions.php: add_image_size( ‘yarpp-thumbnail’,‘
   150’, ‘150’, true );
    2. In WP’s media settings i’ve set thumb size to 150×150
   3. I’ve used [Regenerate Thumbnails](http://wordpress.org/extend/plugins/regenerate-thumbnails/)
   plugin to regenerate thumbnails. 4. I’ve edited CSS to fit new thumbs dimenssions.
 * It didn’t work. All thumbs (new and old) are still 120×120.
 *  Thread Starter [Willem-Siebe](https://wordpress.org/support/users/siebje/)
 * (@siebje)
 * [13 years ago](https://wordpress.org/support/topic/thumbnail-size-problem-1/#post-3523829)
 * Hi everybode with problems that don’t get solved, an alternative is nrelate Related
   Content. No problems at all!
 *  [mitcho (Michael Yoshitaka Erlewine)](https://wordpress.org/support/users/mitchoyoshitaka/)
 * (@mitchoyoshitaka)
 * [13 years ago](https://wordpress.org/support/topic/thumbnail-size-problem-1/#post-3523830)
 * Thanks to those of you who tried going through the FAQ entry. This would be an
   issue to look into in the future.
 *  [Jinnsei Minami](https://wordpress.org/support/users/jinnsei-minami/)
 * (@jinnsei-minami)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/thumbnail-size-problem-1/#post-3523846)
 * Memo;
 * Now, My thumbnail size of YARPP is 120 x 90.
 * 1.I changed the size in styles-thumbnails.php
    **$height = 90; $width = 120;
 * 2.I added next code to the last of my thema’s functions.php, in front of “?>”
   **
   add_image_size( ‘yarpp-thumbnail’, $width = 120, $height = 90, true );
 * All Thumbs were changed.

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

The topic ‘Thumbnail size problem’ 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/)

 * 10 replies
 * 5 participants
 * Last reply from: [Jinnsei Minami](https://wordpress.org/support/users/jinnsei-minami/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/thumbnail-size-problem-1/#post-3523846)
 * Status: resolved