Okay
  Public Ticket #2737861
Prevent cropping of featured images
Closed

Comments

  •  3
    seanpearse12 started the conversation

    Hi, 

    Can you tell me how to prevent the featured images from being cropped on blog posts please? At the moment the top and bottom of some images gets cropped automatically if they aren't in the correct aspect ratio.

    I'd like it to just adjust the height down automatically to fit the frame even if there is still blank space to the right and left. 

    Thanks in advance,

    Sean

  •  1,715
    Barry replied

    Hi Sean,

    Unfortunately there are no options for this by default, this is how WordPress handle the image output for the blog images. The only way to change this, so your images won't be cropped on, at least desktop screens, is on two different ways:

    1. Additional plugin

    By installing the Simple Image Sizes plugin.

    After installing under Settings -> Media you can change the "post-thumbnail size" size width and height to something like "2048" and set the cropping to "No" and press "Update" at the end of the row.

    9920911307.png

    Click to increase size of the image

    2. Code changes

    Within the functions.php file of the theme on line 54 you can change the width & height to a much bigger size, and change the true statement to false

    7103228894.png

    In both cases you have to re-upload the featured image under a different name (to prevent the images still being served from the cache) because WordPress (still) don't change image sizes on the fly. 

    Another option is to install the Regenerate Thumbnails plugin temporary and run this plugin under Tools -> Regenerate Thumbnails

    P.S. if you mean the images from the "QT: Latest News" Elementor widget you can follow the same steps but it is the "thermen-qt-featured-l" image size instead of "post-thumbnail-size". Please note that this is also the image size that is used at the "QT: Featured Pages" element.

    Best regards,
    Barry
    QreativeThemes.com  |  WordPress Themes

  •  3
    seanpearse12 replied

    Hi Barry,

    That's perfect, thanks very much for your prompt response and assistance with this, I'll try the plugin then regenerate the thumbnails. 

    Cheers!

  •  1,715
    Barry replied

    You're welcomesmile.png

    If you have any other questions please let me know.

    Best regards,
    Barry
    QreativeThemes.com  |  WordPress Themes

  •  1,715
    Barry replied

    Hi Sean,

    I'm closing this ticket. If you have any questions feel free to open a new ticket any time and I will be happy to help.

    If you have a moment I would ask if you would like to give us a rating on ThemeForest. You can do this on the download page of your ThemeForest account by clicking the star icons at the Thermen theme. It means a lot to us and we would really appreciate it.

    Thank you.

    Best regards,
    Barry
    QreativeThemes.com  |  WordPress Themes