Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #1419204

    We’re running into some confusion for the best practices with sizing blog featured images. On most of our sites, the featured image keeps a consistent ratio. However, on the site in private content, we’re seeing different image sizes between blog posts. Can you please advise on how we can standardize this more—whether it’s in the file creation, or regenerating thumbnails?


    Hey jaimemerz,

    Thank you for the inquiry.

    The easiest solution would be to upload images with the same size and aspect ratio. The featured images in the posts above vary widely in size, one is 1210px in width while the other is only 400px. Other options are to edit the enfold/includes/loop-index.php template file and assign a different thumbnail to display in the posts, or use the avf_post_featured_image_link filter.

    function avf_post_featured_image_link_mod($image) {
        if (is_single()) {
            $image = get_the_post_thumbnail( $current_post['the_id'], 'medium' );
        return $image; 
    add_filter('avf_post_featured_image_link','avf_post_featured_image_link_mod', 10, 1);

    Best regards,

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