Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #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.

    #1430793

    Hey 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,
    Ismael

    #1431487

    Thank 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?

    #1431586

    Hi,
    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,
    Mike

    #1431628

    Excellent — 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!

    #1431636

    Hi,
    We will leave this open to hear back from you, hopefully this helps.

    Best regards,
    Mike

    #1431641

    Well 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.

    #1431643

    Hi,
    Good catch Guenni007

    Best regards,
    Mike

    #1431659

    By 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);
    #1431677

    Hi,

    Thanks for sharing @guenni007 :-)

    Best regards,
    Rikard

    #1431726

    Thank you all! The Force Regenerate Thumbnails plugins did the trick. It deleted old thumbnails so everything is displaying correctly now. Thank you again!

    #1431748

    Hi,

    Great! Glad to know that this has been resolved. Please don’t hesitate to open another thread if you have more questions about the theme.

    Have a nice day.

    Best regards,
    Ismael

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Full Size featured image in blog posts’ is closed to new replies.