[Smush Pro] Properly size images

Hello, for our site, we have enabled smush pro and automatic resizing. However, many images are not fixed with the plugin. Everything says it’s automatically served and resided by your CDN.

We are aiming to give our users a perfect experience while on our site and the image resizing is a big factor of that.

Can you help?

  • Kasia Swiderska
    • Support nomad

    Hello John Cantlin ,

    I’m sorry about this issue.

    Could you try applying this fix to the Smush plugin and see if it will change anything:
    in core/modules/class-cdn.php on line 669 replaceif ( is_array( $size ) && $size[0] > $content_width ) { with if ( is_array( $size ) && $size[0] < $content_width ) {

    (make sure to backup this file before doing any changes)

    Let me know if this will help.

    kind regards,
    Kasia

  • Patrick Freitas
    • Staff

    Hi John Cantlin

    Hope you are doing well

    Those are some default WordPress configuration but seems the theme is not getting those size for the images that are not being resized.

    Can you forward us some information and we can take a closer look for you?

    Note: Don’t leave your login details in this ticket.

    Instead, you can send us your details using our contact form https://premium.wpmudev.org/contact/#i-have-a-different-question:

    Subject: “Attn: Patrick Freitas”

    – Site login URL:

    – WordPress admin username:
    – WordPress admin password:

    – FTP/SFTP credentials

    Host:
    Username:
    Password:
    Port:

    – cPanel credentials

    Host:
    Username:
    Password:

    – Folder path to the site in question:

    – Link back to this thread for reference

    – Any other relevant URLs/info:

    Please, reply to the ticket once you have sent the information.
    Best Regards
    Patrick Freitas

  • Patrick Freitas
    • Staff

    Hi John Cantlin

    Hope you are doing well.

    I checked the site and I see you removed the post loop where most of the images were loading wrong.

    I see there are four wrong images.

    On this part, your theme is forcing the 90px on CSS.

    .post.listing .figure img {
        width: 90px;
        margin-right: 15px;
    }

    But the theme loads a 300px width image.

    For this must be fixed on the theme side, the theme provider can add a new image size.

    https://developer.wordpress.org/reference/functions/add_image_size/

    And use those custom size instead of forcing using CSS.

    For your Logo, I suggest manually resize it.

    To fix the logo, manually resize it from 878×292 to 415×138 then replace on the theme settings.

    Taking those steps your images issues should be gone.

    Let us know if you need any further help on this.
    Best Regards
    Patrick Freitas

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.