Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1412997

    I’m a little confused by thumbnail sizes.
    I see the “MEDIA SETTINGS” in the Settings tab of WordPress, which allows me to set a maximum size for Thumbnail, Medium, and Large size images that are to be generated every time I upload an image.

    However, I believe Enfold generates these images at many different sizes when I upload them. So do I ignore this menu entirely?

    I’m trying to get my thumbnails in my Portfolio Grid to be exactly the size they need to be to compress them so they load faster.

    When looking through the Portfolio Grid image size options, there really isn’t anything with a 4:5 ratio (which is a very common ratio – social media posts use this). In fact, there aren’t many Portrait ratio options at all – most are square, or landscape.

    So I’ve just been leaving it on “No Scaling” – but that option isn’t great, because I’d like it to crop a Landscape Ratio thumbnail to a 4:5 Portrait.
    Please advise

    #1413023

    Hey flylanddesigns,

    Thank you for the inquiry.

    To modify the size of the default thumbnails, you can utilize the avf_modify_thumb_size filter. To adjust the size of the portfolio thumbnail and change its aspect ratio to 4:5 for example, please insert the following code in the functions.php file.

    add_filter( 'avf_modify_thumb_size', 'avf_modify_thumb_size_mod', 10, 1 );
    
    function avf_modify_thumb_size_mod( $size ) {
        $size['portfolio'] = array('width'=>400, 'height'=>500);
        return $size;
    }
    

    After adding the code, upload the images again or use the following plugin to regenerate the thumbnails in bulk.

    // https://wordpress.org/plugins/regenerate-thumbnails/

    Best regards,
    Ismael

    #1413024

    Hi,

    IMPORTANT: Please make sure to create a site backup or restore point before adding the code or before regenerating the thumbnails.

    Best regards,
    Ismael

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.