lkertesz
asked 3 months ago

Hi:
Is there a CSS Code I can use to resize the featured image that appears in the post.
The featured images are VERY large and I’d like to cut them down to about 1/2 current size.
Thanks,
Lou

1 Answers
DominicStaff
answered 3 months ago

You can add the following code to the functions.php file:

add_image_size( 'custom-size-single', 220, 180, true );

Then open the conten-single.php file and find the following code:

<div class="entry-thumbnail"><?php the_post_thumbnail(); ?></div>

Replace with the following code: 

<div class="entry-thumbnail"><?php the_post_thumbnail('custom-size-single'); ?></div>
Powered by DW Question & Answer Pro