• Resolved daimpa

    (@daimpa)


    Hello Alexander, again congrats for this amazing template.

    I’m haing some troubles with the featured images size.

    I’ve read the these are the thumbnail sizes:

    // Thumbnail sizes
    add_image_size( 'thumb-small', 160, 160, true );
    add_image_size( 'thumb-medium', 520, 245, true );
    add_image_size( 'thumb-large', 720, 340, true );

    So, I’ve to change the “wordpress media setting page” and put these values?
    Also, why if I upload a 720px*280px featured image, it enlarges it and crops it? I’d like to have featured images with a fixed width (720px) and a non-fixed height. So, if I upload a 720px*280px image it will be showed as a 720px*280px image, if I upload a 720px*340px image it shows a 720px*340px images, if I upload a 740px*400px image it adapts and crops it. Is it possible?

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi, thanks!

    I see what you mean with the thumbnail upscale. This is actually a function you can remove completely. Remove the whole:

    /*  Upscale cropped thumbnails
    /* ------------------------------------ */

    Section, if you edit the parent theme.

    If you use a child theme, just empty the function out by adding this to the child theme’s functions.php:

    function alx_thumbnail_upscale( ){ }

    So, I’ve to change the “wordpress media setting page” and put these values?

    You would not edit that page for the theme, as these 3 sizes are additional on top of the WordPress standard ones. Leave them as they are. The place to edit would be in functions.php, and once changed, regenerate thumbnails to re-crop them.

    Thread Starter daimpa

    (@daimpa)

    Thanks!

    Thread Starter daimpa

    (@daimpa)

    Hey, I’ve tested it. It worked, partially. So, what happens now? If I’ve an image smaller than 720px, it doesn’t create a 720px thumbnail, but it uses the original image url as featured image. The problems is that it stretches the image to 720px, so, if I want to use a 100px*100px image as featured image, it uses the original image, but 700*700px.

    Is there any way to use a 100*100px image as featured image?
    I mean, from my point of view it may happen in various circumstances that we don’t have a 720px image available

    Try perhaps adding some extra CSS like this:

    .post-thumbnail img { max-width: 100%; }

    It shouldn’t upscale the image crop itself, unless:

    function alx_thumbnail_upscale( ){ }

    is still running.

    Megzu

    (@megzu)

    Alexander,

    I had a similair question from the other day
    http://wordpress.org/support/topic/resizing-thumbnails-4?replies=1

    Were you able to respond?

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Featured images – media settings’ is closed to new replies.