• Resolved Matic Broz

    (@otterreviews)


    Hey

    I’ve searched the forum but none of the older topics solves my question.
    My thumbnails are in 3:2 ratio, but your plugin uses 1:1, this of course crop my image.
    If I use CSS, it doesn’t change the actual pixels, deforming the image.
    I used css:

    .wpp-thumbnail {
    	height: 60px;
    	width: 90px;
    }

    So, I figured I should change the PHP.
    I know that you’re supposed to create a child’s theme, but I just wanted to try if it works. So I went into:
    /widget/widget.php and changed size to:

            $instance['thumbnail']['width'] = 90;
            $instance['thumbnail']['height'] = 60;

    I saved the new file, purged all possible caches, but it still does not work. The plugin keeps uploading the 75×75.

    Am I missing something?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    Hi @otterreviews,

    To change the size of the thumbnails you don’t need to edit plugin’s code (actually, you should refrain from editing any plugin’s code unless you have a very good reason to do so and you know what you’re doing.)

    You can set the thumbnail size via WP Dashboard > Widgets > [Your Sidebar’s Name here] > WordPress Popular Posts, under Posts Settings > Display post thumbnail.

    Thread Starter Matic Broz

    (@otterreviews)

    Worked like a charm! I didn’t even notice this setting earlier.

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘image size from 75×75 to 90×60’ is closed to new replies.