Homepage post thumbnails cut off
Topics related to RedWaves lite theme goes here.

Ashley

New Member Rank
Posts: 1
Joined: Sun Sep 30, 2018 7:17 pm
Display Name: Ashley

Homepage post thumbnails cut off

linkPost by awilhelm87 » Sun Sep 30, 2018 7:20 pm

How am I able to adjust my featured image so that on my homepage it is not cut off in the post thumbnail? I have attached an image from my mobile, the thumbnail appears the same on my computer as well. Thanks so much!

42896639_10156954810233258_2299695150076526592_n.jpg
42896639_10156954810233258_2299695150076526592_n.jpg (63 KiB) Viewed 601 times
User avatar
Asmi Khalil

Site Admin Rank
Posts: 781
Joined: Fri Jun 26, 2015 7:13 am
Display Name: Asmi Khalil
Location: Tunisia

Re: Homepage post thumbnails cut off

linkPost by admin » Fri Oct 05, 2018 10:23 pm

Hi Ashley,

Thanks for using RedWaves lite :D

By design, the theme is set to crop your featured images, if necessary, to generate thumbnails in specific dimensions. You can easily alter this behavior by making a simple change inside the theme functions.php file.

Here is how to do it. Locate the functions.php file using CPanel file manager or any FTP client. It will be located in the root folder where RedWaves lite is installed (/wp-content/themes/redwaves-lite).

Once you find it, open it using a code editor (Cpanel has one) and find this line of code (line 146):
add_image_size( 'smallfeatured', 298, 248, true ); //small featured
You just need to change true to false:
add_image_size( 'smallfeatured', 298, 248, false ); //small featured
This will only affect the featured images that appear when the first display layout is selected (which is the default one).

If you don't want any of your thumbnails to be cropped, do the same to the other sizes (big, small and tiny).
By the way, these thumbnails are generated from your original images. Your original images will not be edited or resized.

Finally, you should regenerate your thumbnails in order for this change to affect your already uploaded images. Luckily, you don't need to do this manually. You can use this simple plugin https://wordpress.org/plugins/regenerate-thumbnails/

If you like RedWaves lite, please leave your review here https://wordpress.org/support/theme/red ... /#new-post. Thanks in advance!
I think there is a world market for maybe five computers. - IBM chairman Thomas Watson, 1943

Who is online

Users browsing this forum: No registered users and 2 guests

It is currently Tue Nov 12, 2019 4:42 pm