Support » Theme: Donovan » Standard size for preview images

Viewing 4 replies - 1 through 4 (of 4 total)
  • Resolved!

    
    .attachment-post-thumbnail {
       width: 100%;
       height: 135px;
    }

    In the previous post I put the css that solves the thing, but it is not a real solution, because width css is not a fixed measure.

    One piece of advice I can give you is that you can change your codes at the source so that preview images scale correctly like these I have in my other site with another template: https://albertifoto.altervista.org

    Theme Author ThemeZee

    (@themezee)

    Hi there,

    Thanks for using Donovan.

    By default, the images should have the same size. However, you might have to regenerate your images with the Regenerate Thumbnails plugin so WordPress will crop them to the correct image size.

    You can download the plugin from https://wordpress.org/plugins/regenerate-thumbnails/

    And yes, it is never a good idea to change image sizes with CSS, that will only result in distorted images.

    Best,
    Thomas

    steve92

    (@steve92)

    I think it’s a question of code, not plugins. In my site https://albertifoto.altervista.org I use WP-Portfolio theme and I have not installed the plugin that you advise me. As you can see, the previews are resized natively correctly even without plugins and without having modified the source code.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.