Tagged: featured image
-
AuthorPosts
-
May 17, 2021 at 3:44 am #1300621
Hey,
For some reason the featured image of my posts is being cropped at the top and bottom. It looks normal when i click on it and expand it to the lightbox. I have tried regenerating the thumbnails without success.
How can i fix this?
May 18, 2021 at 9:14 am #1300900Hey w_archer,
Thank you for the inquiry.
That is the default size of the featured images on post with sidebar. To adjust it, you may need to install the following plugin, activate it, go to the Settings > Media panel, look for the entry_with_sidebar thumbnail, adjust its size, then regenerate the thumbnails.
// https://wordpress.org/plugins/simple-image-sizes/
Best regards,
IsmaelMay 19, 2021 at 12:50 am #1301086Hi Ismael,
This plugin hasn’t been updated in over 2 years. I don’t really want to rely on a plugin that is no longer supported. Does Enfold have a built in way to change featured image size for posts with sidebars? Or something i can add in the functions.php?
thanks
May 20, 2021 at 3:38 am #1301265Hi,
The plugin is outdated but it works properly. If you do not want to use it, then you will have to modify the functions.php file and adjust the dimension of the thumbnail manually. Around line 193, you will see this code.
$avia_config['imgSize']['entry_with_sidebar'] = array('width'=>845, 'height'=>321); // big images for blog and page entries $avia_config['imgSize']['entry_without_sidebar']= array('width'=>1210, 'height'=>423 ); // images for fullsize pages and fullsize slider
Adjust the width and height value, then regenerate the thumbnails, or upload the images again. This plugin will help with the thumbnail regeneration.
// https://wordpress.org/plugins/regenerate-thumbnails/
Best regards,
IsmaelJune 7, 2021 at 3:46 am #1304321Hi Ismael,
Sorry for the slow reply, i have been preoccupied with the other thread. I have added the code you gave me to functions.php and played with the image sizes, however the image still gets cropped regardless of the size. I have tried changing the size of the image containers and overlay image etc using css but even if the container is much larger than the photo it still gets cropped?
June 8, 2021 at 8:56 am #1304566Hi,
Thank you for the update.
Did you re-upload the images or regenerate the thumbnails after adjusting the size? What are the actual sizes of the images that you are uploading? You can use the same plugin above to regenerate the thumbnails.
Best regards,
IsmaelJune 11, 2021 at 2:51 am #1305146Hi Ismael,
I have tried this:
1. completely re-uploaded new images
2. used the media replace plugin to replace the existing images
3. used the regenerate thumbnails pluginThe original size of the photo ( the last photo that i tested ) is 500×900 pixels. I get that this is not a square photo, but i will be relying on clients uploading these images so i can’t manually crop photos for everyone. I just need the featured image to not crop photos, even if it means having a smaller photo.
June 11, 2021 at 6:58 am #1305200Hi,
You should use a wider image, say a minimum of 700-800px, this is for pages with sidebar. For full width pages or posts, using larger images may be necessary.
We cannot check the site above because it is on maintenance mode and the login info is no longer valid. Please provide another login account or generate a new login token so that we can check the featured image again.
Best regards,
IsmaelJune 21, 2021 at 3:05 am #1306631Hello,
I have tried using a much larger photo but it didn’t make a difference. I even tried to install the simple image sizes plugin that you recommended but the photos are still being cropped.
i have remade a login for you below
June 21, 2021 at 3:26 am #1306633Actually ignore that, i regenerated the thumbnails about 100 times and it finally worked. Not sure why it wasn’t working earlier since i changed browser to avoid caching issues. In any case everything is working as expected now so you can close this .
thanks
June 22, 2021 at 4:29 am #1306840 -
AuthorPosts
- The topic ‘Featured image being cropped’ is closed to new replies.