James Bogner
asked 10 years ago

We love the DW Focus theme, but way in which the news slider crops featured images from posts is unsightly. How could we specify a fixed, shorter height for that slider so that the images display in the same aspect ratio as the 770×400 featured images without cropping? Thanks!

1 Answers
Wilfred
answered 10 years ago

Hi James Bogner,
To resolve this issue please follow my instruction here:
1. Open function.php file in /wp-content/themes/dw-focus/functions.php 
2. Replace the following code – line 687

  add_image_size( 'slider-thumb', 520, 400, true );

with:

  add_image_size( 'slider-thumb', 520, 270, true )

3, Use regenerate thumbnails plugin to regenerate your thumbnails after changing the thumbnail sizes.
Hope this help !

Powered by DW Question & Answer Pro