• 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://ww.wp.xz.cn/plugins/yet-another-related-posts-plugin/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author YARPP

    (@jeffparker)

    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://ww.wp.xz.cn/extend/plugins/regenerate-thumbnails/

    Thread Starter jphipps

    (@jphipps)

    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

    (@jeffparker)

    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.