asked 3 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 3 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 2 years ago

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

Dominic Staff
replied 2 years ago

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

Caleb Williams
replied 1 year ago

I still wonder if this is possible to make the homepage thumbnails exactly the same and uniform.

Dominic Staff
replied 1 year ago

At the moment, you can make the homepage thumbnails exactly the same and uniform from the Dashboard > Settings > Media > Thumbnail size.
Or use the CSS code to edit the image size. However, you should let me know all the position that you want to change, you can send me the site URL and I will help you check to resolve this issue.

Powered by DW Question & Answer Pro