Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #359905

    I really like to use the featured image option at my photo blog! ;-)

    http://www.marcbijl.nl/blog

    Right now I set the featured image size to 2060×687 (entry_without_sidebar), so I can use retina panoramas with ratio 1:3 as featured image.

    However, I want to show other type of images too (non-panoramas), and use these as a featured image the same way. However, these images have other sizes than my panoramas. In fact: each image can have its own custom size.

    So ideally speaking, I want the size of the featured image to be same as the photo I use for it, whatever size this photo might have. This means that each post can have a featured image with a different size.

    Is that possible?

    #360175

    Hey Marc!

    Try opening up /enfold/includes/loop-index.php and change line 37 from this.

    $current_post['slider']  	= get_the_post_thumbnail($current_post['the_id'], $size);
    

    To this.

    $current_post['slider']  	= get_the_post_thumbnail($current_post['the_id'], 'full');
    

    Regards,
    Elliott

    #361864

    That does the trick, great!

    Thnx,
    Marc

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Set a different / custom size for featured image per post’ is closed to new replies.