WordPress.org

Ready to get started?Download WordPress

Forums

Yet Another Related Posts Plugin (YARPP)
[resolved] Thumbnail size problem (11 posts)

  1. Willem-Siebe
    Member
    Posted 1 year ago #

    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/

  2. Willem-Siebe
    Member
    Posted 1 year ago #

    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

  3. johnirsk8r
    Member
    Posted 1 year ago #

    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">

  4. Willem-Siebe
    Member
    Posted 1 year ago #

    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

  5. ElvisKa
    Member
    Posted 1 year ago #

    Hey, i'm having the same problem.
    I set all my thumbnails setting to 150x150, edited css, put dimenssions in functions.php, regenarated thumbnails... but still all Yarpp thumbs are 120x120 and looks bad when resized with CSS...

    Lookind forward for any advice.

  6. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 1 year ago #

    Dear all, Please read the first two entries in the readme's Frequently Asked Questions section. They specifically address these questions.

  7. Willem-Siebe
    Member
    Posted 1 year ago #

    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

  8. ElvisKa
    Member
    Posted 1 year ago #

    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 150x150):

    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 150x150
    3. I've used 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 120x120.

  9. Willem-Siebe
    Member
    Posted 10 months ago #

    Hi everybode with problems that don't get solved, an alternative is nrelate Related Content. No problems at all!

  10. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 10 months ago #

    Thanks to those of you who tried going through the FAQ entry. This would be an issue to look into in the future.

  11. Jinnsei Minami
    Member
    Posted 5 months ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.