-
AuthorPosts
-
January 16, 2024 at 2:49 pm #1430707
Hi, I am trying to display the full-size feature image in my blog posts. I have installed the Simple Image Sizes plugin and adjusted image sizes there and regenerated thumbnails, but the images are still getting cropped.
January 17, 2024 at 10:33 am #1430793Hey Phil,
Thank you for the inquiry.
To adjust the size of the blog post thumbnail, you can add this code in the functions.php file.
function avf_customization_modify_thumb_size( $size ) { $size['entry_without_sidebar'] = array( 'width' => 9999, 'height' => 9999 ); $size['entry_with_sidebar'] = array( 'width' => 9999, 'height' => 9999 ); return $size; } add_filter( 'avf_modify_thumb_size', 'avf_customization_modify_thumb_size', 10, 1 );
After adding the filter, you can use the following plugin to regenerate the thumbnails.
// https://wordpress.org/plugins/regenerate-thumbnails/
Best regards,
IsmaelJanuary 19, 2024 at 2:44 pm #1431487Thank you. Maybe the regenerate thumbnails plugin is not working as the Featured images are still showing as cropped: https://sleepnetmasks.com/new_2023/2023/04/28/what-does-it-mean-to-be-baa-compliant/
When I re-upload the image it is displaying correctly. Don’t really want to go back through 100+ posts to reupload the images! Any suggestions?
January 20, 2024 at 6:15 pm #1431586Hi,
Thanks for the feedback, it sounds like this is working for you since the new uploaded thumbnails are correct, the Regenerate Thumbnails plugin is typically the best working one, are you using server cache or a CDN that needs to be cleared? When you used it did you get any errors, try running it again or try this one:
Force Regenerate Thumbnails, it says that it deletes the old images so perhaps you will want to backup your site first.Best regards,
MikeJanuary 21, 2024 at 5:37 pm #1431628Excellent — thank you for all your help! I will try that other plugin.
BTW LOVE the enfold theme and the ALB! Your team does great work!January 21, 2024 at 8:18 pm #1431636Hi,
We will leave this open to hear back from you, hopefully this helps.Best regards,
MikeJanuary 21, 2024 at 10:35 pm #1431641Well what you had to know is that you can redifine an existing enfold image size with an additional setting of crop or no-crop:
so you can use ismaels code with an additional setting :
function avf_customization_modify_thumb_size( $size ) { $size['entry_without_sidebar'] = array( 'width' => 9999, 'height' => 9999, 'crop' => false ); $size['entry_with_sidebar'] = array( 'width' => 9999, 'height' => 9999, 'crop' => false ); return $size; } add_filter( 'avf_modify_thumb_size', 'avf_customization_modify_thumb_size', 10, 1 );
After that recalculate thumbs – maybe that is the solution.
January 21, 2024 at 10:41 pm #1431643January 22, 2024 at 9:37 am #1431659By the way – afaik – WordPress limits upload size not only to a file size but also to file dimension of 2560px every image that is bigger is saved as filename-scaled or something like that. If you do not want this behavior and upload bigger images in file-dimension use this snippet:
add_filter( 'big_image_size_threshold', '__return_false' );
or if you like to set it to a new treshold :
function redifining_big_image_size_threshold( $threshold ) { return 5000; } add_filter('big_image_size_threshold', 'redifining_big_image_size_threshold', 999, 1);
January 22, 2024 at 2:55 pm #1431677January 23, 2024 at 12:40 am #1431726Thank you all! The Force Regenerate Thumbnails plugins did the trick. It deleted old thumbnails so everything is displaying correctly now. Thank you again!
January 23, 2024 at 6:22 am #1431748 -
AuthorPosts
- The topic ‘Full Size featured image in blog posts’ is closed to new replies.