WordPress.org

Forums

Yet Another Related Posts Plugin (YARPP)
[resolved] Changing thumbnail size - Please give example (11 posts)

  1. mariafernandez
    Member
    Posted 2 years ago #

    According to the FAQs, to change the thumbnail size on my blog I'm supposed to add the following line to my functions.php file:

    add_image_size( 'yarpp-thumbnail', $width, $height, true );

    And I'm supposed to give the width and height. Unfortunately, without an example I don't know how to do this. I've already broken my functions.php file once trying the following:

    add_image_size( 'yarpp-thumbnail', 120, 145, true );

    Can anyone give me an example of how to get thumbnails with a 120px width and 145px height?

    http://wordpress.org/extend/plugins/yet-another-related-posts-plugin/

  2. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 2 years ago #

    add_image_size( 'yarpp-thumbnail', 120, 145, true ); looks like the code you want. What error did you get when you added that?

  3. mariafernandez
    Member
    Posted 2 years ago #

    I didn't get an error message. My functions.php file broke and I got the famous blank screen. I then had to re-upload the original funtions.php file to get my blog back.

  4. mfarinac
    Member
    Posted 2 years ago #

    This just happened to me too. The functions.php didn't like the code and it crashed the site. I am using a wpzoom theme, they recommended YARPP.

  5. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 2 years ago #

    I'm not able to help you without knowing what went wrong in functions.php. There are ways of learning why the white screen occurred, or making it actually print out its errors: https://codex.wordpress.org/Debugging_in_WordPress

  6. mariafernandez
    Member
    Posted 2 years ago #

    I've moved to another plugin now.

  7. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 2 years ago #

    Sorry we weren't able to resolve your issues.

  8. Chukwudi Emmanuel Udegbunam
    Member
    Posted 2 years ago #

    Thanks Mitcho. It worked ;)

  9. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 2 years ago #

    @Chukwudi glad to hear. :)

  10. micklauer
    Member
    Posted 1 year ago #

    dunno what the OP was crying about, that fixed it instantly.

  11. remcotv
    Member
    Posted 1 year ago #

    Am using an child template within the Genesis theme.
    Adding the line

    add_image_size( 'yarpp-thumbnail', 120, 60, true );

    To the functions.php in the genesis theme, not the folder off the child theme will work for me

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Yet Another Related Posts Plugin (YARPP)
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic