• Resolved sagilca

    (@sagilca)


    Hi,

    I’d like to use the default “medium” size (WP media settings) for the image featured for single posts. Right now, it seems that it gets the full-size image and it scales it down, but I’d prefer to make use of the already generated medium size images. Any tips about what files should I modify?

    Thanks! ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter sagilca

    (@sagilca)

    Ok, so I managed to do it :). Just in case it is useful, here is how I did it:

    I edited class-content-post.php (in a child theme) and just after:

    <section class="entry-content <?php echo $icon_class ?>">

    I added:

    <a  class="imagendestacada grouped_elements" rel="tc-fancybox-group<?php echo $post -> ID ?>" href="<?php $image_id = get_post_thumbnail_id();
    	$image_url = wp_get_attachment_image_src($image_id,'large', true);
    	echo $image_url[0];  ?>">
    	<?php the_post_thumbnail('medium'); ?>
    	</a>

    Can’t you simply select the medium image size when you insert the featured image? (Bottom right of screen)

    Thread Starter sagilca

    (@sagilca)

    The design is for a blog imported from blogger with dozens of posts alrwady written, so ;)… but thanks for teh suggestion! ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Use WP autogenerated medium size for the featured post image in the post page?’ is closed to new replies.