Smush CDN conflicts with WPBakery page builder

I have enabled Smush CDN. The header images and the images on the sidebar are serving from CDN server but the images under latest posts section doesn’t serve from Smush CDN.

  • Pawel Pela
    • Ex Staff

    Hello Kate !

    First of all, apologies for the issue you’re facing here. We’ll definitely check that out for you, as this is a popular builder framework and we want Smush to work well with it!

    We’ve already forwarded that issue to our Second Line Support team for additional checking and they will be looking for a solution on this. They’ll update you here in this ticket as soon as they have any feedback about this.

    While you’re waiting, one of my teammates tried to replicate that and check if there’s anything we can do to help. He found that if you set the Display Style on the grid element to “Show all”, this will make the images to go through our CDN. That may be a temporary fix you may want to consider.

    Kind regards,
    Pawel

  • Tho Bui
    • SLS

    Hi Kate ,

    I hope you’re well today!

    I have prepared a custom snippet which you can use as a guide here:
    https://gist.github.com/wpmudev-sls/2c84342aefbf131ce8747e8e8cc43a0e

    You can download a zip, unzip it and upload file smush-fix-image-not-render-from-cdn.php to your wp-content/mu-plugins folder. If that folder doesn’t exist you can simply create it.

    If you are not familiar with mu-plugins you can read about them here:
    https://wordpress.org/support/article/must-use-plugins/
    or you can paste it in your child theme’s functions.php file.

    Kind regards,
    Tho Bui