asked 2 years ago

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.

1 Answers
answered 2 years 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>
Caleb Williams
replied 1 week ago

Is there a way to make all thumbnails on the homepage of DW Focus the same size/dimensions?

Dominic Staff
replied 1 week ago

Please send me a screenshot for further checking and you can provide your site URL

Powered by DW Question & Answer Pro